您的位置: 首页 > 文章 > python装饰器 python装饰器 分类: 文章 • 2024-05-30 10:58:46 在函数前面加上功能函数: eg: def outer_func(): pass @outer_func def inner_func(): pass 则会给inner_func函数加上outer_func函数的功能 具体运行原理参见下图: