摘要: 一:编写函数,(函数执行的时间用time.sleep(n)模拟) import time def timmer(func): start=time.time() func() end=time.time() print("程序执行时间{}".format(end-start)) 二:编写装饰器,为函 阅读全文
posted @ 2020-03-23 15:11 耗油炒白菜 阅读(244) 评论(0) 推荐(0)