摘要: 1. 装饰器后续 """语法糖会将紧挨着的被装饰对象的名字当做参数自动传入装饰器函数中""" # 判断print执行顺序 def outer1(real_func1): print('加载了装饰器1') def func1(*args, **kwargs): print('执行了func1') re 阅读全文
posted @ 2022-03-21 16:51 thrombus 阅读(35) 评论(0) 推荐(0)