Created
December 28, 2020 08:15
-
-
Save Zheaoli/10dfa41ce1ff003df3da0701f4595f2f 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 Abc: | |
def __init__(self, x=None): | |
self._x = x | |
def print(self): | |
print(self._x) | |
Abc().print() | |
x = lambda a: Abc(a) | |
x(1).print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment