formations/algo/poo/cours/snippets/decorateur.py
2017-09-05 09:25:48 +02:00

11 lines
132 B
Python

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