码迷,mamicode.com
首页 > 其他好文 > 详细

装时器--预习

时间:2017-04-26 22:56:05      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:return   this   one   turn   int   输出   ret   his   pytho   

  

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

装时器--预习

标签:return   this   one   turn   int   输出   ret   his   pytho   

原文地址:http://www.cnblogs.com/yum777/p/6771403.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!