装时器--预习

Posted whitesky_root

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了装时器--预习相关的知识,希望对你有一定的参考价值。

  

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

以上是关于装时器--预习的主要内容,如果未能解决你的问题,请参考以下文章