会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
morein2008
博客园
首页
新随笔
联系
订阅
管理
2020年4月23日
自定义计算函数运行耗时的函数
摘要: 自定义计算函数运行耗时的函数 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)
编辑
公告