天天看点

Decorator

A Python decorator is a specific change to the Python syntax that allows us to more conveniently alter functions and methods (and possibly classes in a future version). This supports more readable applications of the DecoratorPattern but also other uses as well.

Decorator 即修饰符,可以方便地对函数和类进行_修饰_。