Discuss / Python / 最后的题的粗陋解法

最后的题的粗陋解法

Topic source

静水流深

#1 Created at ... [Delete] [Delete and Lock User]
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

  • 1

Reply