def log(func):
def wrapper(*args, **kw):
print 'call %s():' % func.__name__
return func(*args, **kw)
return wrapper
@log
def test(*args, **kw):
print args
# print kw
s= test('3','4',xx='zz')
print s
print type(s)
C:Python27python.exe C:/Users/TLCB/PycharmProjects/untitled/mycompany/cookbook/a28.py
call test():
('3', '4')
None
<type 'NoneType'>