python 高级语法
摘要:1 #coding:utf-8 2 3 #定义一个装饰器函数 4 def doc_func(func): 5 6 #包裹函数(闭包) 7 def warpfunc(): 8 #做一些额外的事情 9 print "%s called" %(func.__name__) 10 func() 1...
阅读全文
posted @ 2016-11-19 20:01
posted @ 2016-11-19 20:01
posted @ 2016-11-19 19:51
posted @ 2016-06-29 13:01
posted @ 2016-06-29 12:03