摘要: 装饰器简易版本 1 # 给函数添加统计执行时间的功能 2 3 def outer(func): # func指向的是函数名index 4 # func = index 5 def get_time(): 6 start_time = time.time() 7 func() 8 end_time = 阅读全文
posted @ 2021-11-17 17:17 colagirl 阅读(45) 评论(0) 推荐(0)