def log1(func): def in_log1(): print('begin call') func() print('end call') return in_log1
@log1 def now(): print('dota') now()
Sign in to make a reply
白马陈庆之_
def log1(func): def in_log1(): print('begin call') func() print('end call') return in_log1
@log1 def now(): print('dota') now()