fork download
  1. import functools
  2. def log(text):
  3. def decorator(func):
  4. @functools.wraps(func)
  5. def wrapper(*args,**kw):
  6. print('%s %s()' % (text,func._name_))
  7. return func(*args,**kw)
  8. return wrapper
  9. return decorator
  10. # your code goes here
  11. # your code goes here
Success #stdin #stdout 0.09s 14088KB
stdin
Standard input is empty
stdout
Standard output is empty