Last active
May 29, 2019 16:59
-
-
Save lafada/3c332d79a2a9580b1264b284b7ac398e to your computer and use it in GitHub Desktop.
Python Test
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
@my_deco(2) | |
def deco_test1(): | |
return 4 | |
@my_deco("Hello") | |
def deco_test2(): | |
return " World!" | |
if __name__ == "__main__": | |
print(deco_test1()) # 6 | |
print(deco_test2()) # Hello World! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment