def fun2(fun1): def fun3(): print(‘i am pythoner!!! ‘) return fun1() return fun3@fun2def fun1(): print(‘this is fun1‘) return 666fun1()输出:
i am pythoner!!! this is fun1
装时器--预习
原文:http://www.cnblogs.com/yum777/p/6771403.html