formations/algo/poo/cours/snippets/decorateur.py
2019-03-25 13:14:17 +01:00

11 lines
132 B
Python

def helloworld(ob):
print "Hello world"
return ob
@helloworld
def myfunc():
print "my function"
myfunc()
print myfunc