2014年12月30日
摘要: 装饰器前面提过了,采用python的闭包特性实现: from time import time from time import sleep def count_time(): def tmp(func): def wrapped(*args, **kargs): begin_time = time() result... 阅读全文
posted @ 2014-12-30 21:31 inevermore 阅读(863) 评论(0) 推荐(0) 编辑