Created
June 25, 2019 14:16
-
-
Save marcuxyz/0298cdc00dda7501e13554d8e6f27fde to your computer and use it in GitHub Desktop.
Criando decorator em python https://youtu.be/IK-ZbJHIiaI
This file contains hidden or 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 tudo_maiuscula(f): | |
def maiuscula(): | |
return f().upper() | |
return maiuscula | |
@tudo_maiuscula | |
def olamundo(): | |
return | |
ola = olamundo() | |
print(ola) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment