2015年1月12日
摘要: 之前我们在一个用于统计函数调用消耗时间的装饰器中写了一个装饰器,用于统计函数调用时间。代码如下: from time import time from time import sleep def count_time(): def tmp(func): def wrapped(*args, **kargs): begin_time = ti... 阅读全文
posted @ 2015-01-12 21:34 inevermore 阅读(962) 评论(0) 推荐(0) 编辑