面试题集锦
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 def log(func): 2 def inner(*args,**kwargs): 3 print('你要调用%s函数了'%func.__name__) 4 ret = func(*args,**kwargs) 5 return ret 6 return inner 7 8 @log 9 def f1(): 10 print('f1') 11 @log 12 def f2(): 13 print('f2') 14 15 #日志 log 必须会! 16 f1() 17 f2()
未完待续。。。。。