Created
September 15, 2018 04:39
-
-
Save locona/ebe8c815cb25abb7f565d054e2b02646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sample: | |
def __init__(self): | |
pass | |
@classmethod | |
def helloo(cls): | |
print('class hello') | |
def hello(self): | |
print('instance hello') | |
s = Sample() | |
s.hello() | |
Sample.helloo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment