首页 > 代码库 > 装时器--预习

装时器--预习

  

def fun2(fun1):
def fun3():
print(‘i am pythoner!!! ‘)
return fun1()
return fun3


@fun2
def fun1():
print(‘this is fun1‘)
return 666
fun1()

输出:

i am pythoner!!!
this is fun1

装时器--预习