Skip to content

Instantly share code, notes, and snippets.

@Zheaoli
Last active September 22, 2017 03:32
Show Gist options
  • Save Zheaoli/f760ccb5353e29728b382ded426b3411 to your computer and use it in GitHub Desktop.
Save Zheaoli/f760ccb5353e29728b382ded426b3411 to your computer and use it in GitHub Desktop.
class TestABC(object):
def __call__(self,a):
def inner_method(b):
return a+b
return inner_method
add=TestABC()
@Zheaoli
Copy link
Author

Zheaoli commented Sep 22, 2017

add=lambda m:lambda n:m+n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment