-
-
Save jianghu52/2bf04db06fa20ec7dc11 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
def callfunction(name): | |
def warp(f): | |
def warp1(*args): | |
print "the caller is "+ name | |
f() | |
return warp1 | |
return warp | |
@callfunction("xman") | |
def f(*args): | |
print "f start" | |
if __name__ == '__main__': | |
f() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment