Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def decor(func):
- print('Decorated')
- def decorated(*args, **kwargs):
- print('Called')
- return func(*args, **kwargs)
- return decorated
- @decor
- def a():
- pass
- @decor
- def b():
- pass
- a()
- a()
- a()
- a()
- a()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement