摘要: 函数装饰器 1.装饰器简易版本 给函数添加统计时间的功能 import time def index() time.sleep(3) print('原函数') def outer(func): # func指向的是函数名index # func = index def get_time(): sta 阅读全文
posted @ 2021-11-17 20:25 skuukzky 阅读(76) 评论(0) 推荐(0)