可以看菜鸟教程:https://www.runoob.com/w3cnote/python-func-decorators.html
还有一个实例:https://zhuanlan.zhihu.com/p/78181226