自定义计算函数运行耗时的函数

自定义计算函数运行耗时的函数 import time import functools def running_time(func): @functools.wraps(func) def wrapper(*args,**kwargs): start=time.time() result=func(
posted @ 2020-04-23 13:29  morein2008  阅读(357)  评论(0编辑  收藏  举报