摘要: 装饰器: 需求 > 写一个功能,测试其他同事函数的调用效率。 第一版:功能版 import time def func(): time.sleep(0.2) print('非常复杂') def func1(): time.sleep(0.3) print('超级复杂') # print(time.t 阅读全文
posted @ 2018-01-30 22:43 摩柯无良 阅读(117) 评论(0) 推荐(0) 编辑