Skip to content

Instantly share code, notes, and snippets.

@tamago324
Created October 9, 2017 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamago324/5fe7298fa496b3d2f970825d0459eef1 to your computer and use it in GitHub Desktop.
Save tamago324/5fe7298fa496b3d2f970825d0459eef1 to your computer and use it in GitHub Desktop.
Pythonのdatetime.timeのソースでのプロパティの記述
# Read-only field accessors
@property
def hour(self):
"""hour (0-23)"""
return self._hour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment