Created
March 11, 2020 05:40
-
-
Save alexted/a914462a31405e855b6672313ebdde6f to your computer and use it in GitHub Desktop.
This file contains 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 Qwer(): | |
def __init__(self, info='12345'): | |
self.info = info | |
def method(self): | |
print(self.info) | |
def fun(meth): | |
return meth() | |
object = Qwer() | |
fun(object.method) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment