Welcome to kimi's blog

摘要: 函数 装饰器语法糖 """装饰器语法糖,语法糖会自动将下面紧挨着的函数当作第一个参数自动传给@函数调用""" def outer(func): def inner(*args,**kwargs): print('执行被装饰对象之前可以做的额外操作') res = func(*args,**kwarg 阅读全文
posted @ 2022-10-12 21:11 魔女宅急便 阅读(31) 评论(0) 推荐(0)
Title