def log(func): if not isfunction(func): print(f'msg=>{func}') return log else: @functools.wraps(func) def wrapper(*args, **kw): print('begin call') rs = func(*args, **kw) print('end call') return rs return wrapper
Sign in to make a reply
静水流深