Last active
September 22, 2017 03:32
-
-
Save Zheaoli/f760ccb5353e29728b382ded426b3411 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 TestABC(object): | |
def __call__(self,a): | |
def inner_method(b): | |
return a+b | |
return inner_method | |
add=TestABC() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add=lambda m:lambda n:m+n