摘要:
2. 装饰器语法 (1)无参数装饰器 def deco(func): print func return func @deco def foo():pass foo() 第一个函数deco是装饰函数,它的参数就是被装饰的函数对象.我们可以在deco函数内对传入的函数对象做一番"装饰”,然后返回这个对 阅读全文
posted @ 2016-11-20 18:19
abelian
阅读(115)
评论(0)
推荐(0)
浙公网安备 33010602011771号