摘要:
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_ 阅读全文
摘要:
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 阅读全文