@SnoopJeDi/

EmptyDarkorangeProtools

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
def decorator(func):
    def decorated(*args, **kwargs):
      text = func()    
      return "I'm decorating this text: {}".format(text)
    return decorated  # return a new function that wraps the original
    
@decorator
def wibble():
    return 'foo'
    
print(wibble())