Skip to content

Instantly share code, notes, and snippets.

@soyHouston256
Created November 14, 2020 11:31
Show Gist options
  • Save soyHouston256/a1a8febaae17fbbf777a1097398fc81e to your computer and use it in GitHub Desktop.
Save soyHouston256/a1a8febaae17fbbf777a1097398fc81e to your computer and use it in GitHub Desktop.
def function_decorate(func):
def worker():
print('Iniciamos esta funcion')
func()
print('Finalizamos esta funcion')
return worker
@function_decorate
def suma():
print(20+30)
if __name__ == '__main__':
suma()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment