decorator
Add functions before and after the original function, and should not use the calling method of the original function
spelling
def timmer(fun):
def wapper ():
res = fun()
return res
return wapper
decorator
Add functions before and after the original function, and should not use the calling method of the original function
spelling
def timmer(fun):
def wapper ():
res = fun()
return res
return wapper