python装饰器: 我们先简单的写一个装饰器: def 装饰器名字(func): #参数func表示传入的是一个函数 def inner(): print('.....inner..功能....') func() #调用我们所调用的函数 return inner #注:从上面的结构上来看,装饰器实际上就是两层函数: