def debug(func):
def wrapper(*args, **kwargs):
print "[DEBUG]: enter {}()".format(func.__name__)
print 'Prepare and say...',
return func(*args, **kwargs)
return wrapper
@debug
def say(something):
print "hello {}!".format(something)
如题,debug怎么获取something呢?debug只接收了func啊?连带参数一起接收了吗?