摘要: 一,装饰器 在原有的函数前面增加功能,且不改变原函数的调用方式。 1 def wrapper1(func): 2 def inner1(): 3 print('wrapper1 ,before func') 4 func() # f 5 print('wrapper1 ,after func') 6 阅读全文