程序人生

Python 装饰器 Decorator

一、装饰器定义 在代码运行期间动态增加功能的方式,称之为ldquo;装饰器rdquo;(Decorator)。本质上,Decorator就是一个...