摘要: import time def timer(func): def deco(arg1): start_time=time.time() func(arg1) stop_time=time.time() print("the func run time is %s"%(stop_time-start_ 阅读全文
posted @ 2017-11-09 18:50 仔仔爱python 阅读(132) 评论(0) 推荐(0) 编辑
摘要: import time def deco(func): start_time=time.time() func() stop_time=time.time() print("the func run time is %s"%(stop_time-start_time)) def test1(): t 阅读全文
posted @ 2017-11-09 16:59 仔仔爱python 阅读(157) 评论(0) 推荐(0) 编辑