摘要: 自定义计算函数运行耗时的函数 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) 推荐(0) 编辑