标签:*args turn top wrap func art port 函数 **kwargs
import time
def timmer (func):
def wrapper(*args,**kwargs):
start_time=time.time()
res=func(*args,**args)
stop_time=time.time()
print(‘run time is %s‘ %(stop_time-start_time))
return res
标签:*args turn top wrap func art port 函数 **kwargs
原文地址:http://www.cnblogs.com/dadadadashixiong/p/6885031.html