摘要: 第一个装饰器 1 #装饰器的组成结构为:高阶函数+嵌套函数 2 import time 3 def timer(func): #timer(test1) func = test1 4 def deco(*args,**kwargs): 5 first_time =time.time() 6 func 阅读全文
posted @ 2018-01-27 17:33 美梦恋黑夜 阅读(142) 评论(0) 推荐(0) 编辑