def outer(func): def inner(*arg,**kwarg): print('1') ret=func((*arg,**kwarg) print('2') return ret return inner @outer def f1(*arg,**kwarg): return