摘要: python 装饰器Decorator #在不改变函数代码的情况下,添加功能 import timedef timeDecorator(func): def getTime(args): t0 = time.time() re = func(args)print re print "执行%s耗时%f 阅读全文
posted @ 2016-05-31 22:08 3one 阅读(99) 评论(0) 推荐(0) 编辑