2018年9月27日
摘要:
# 无参装饰器的模板 # def outter(func): # def wrapper(*args,**kwargs): # res=func(*args,**kwargs) # return res # return wrapper import time user_info={'current_user':None} def auth(... 阅读全文
摘要:
装饰器的名字:要在被装饰对象正上方单独一行写上 import time def timmer(func): #fun=最原始那个home的内存地址 def wrapper(*args,**kwargs): start=time.time() res=fun(*args,**kwrags) stop= 阅读全文