Skip to content

Instantly share code, notes, and snippets.

@lafada
Last active May 29, 2019 16:59
Show Gist options
  • Save lafada/3c332d79a2a9580b1264b284b7ac398e to your computer and use it in GitHub Desktop.
Save lafada/3c332d79a2a9580b1264b284b7ac398e to your computer and use it in GitHub Desktop.
Python Test
@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