摘要:
网站实现验证功能装饰器: 保留要装饰函数的返回结果: 不同网页不同验证方式的装饰器: 阅读全文
摘要:
装饰器要装饰的函数的参数个数不确定时,采用弹性参数*args,**kwargs 阅读全文
摘要:
import time def timer(func):#timer(test1) func=test1 def deco(): start_time=time.time() func()#run test1 stop_time=time.time() print('the func run time is %s'%(s... 阅读全文