python 修饰器

不经常使用,不过这几天用上了。python 顺便作个exp,跟闭包差很少闭包 def y(func): print 'this is aaa',type(func),func def myfun(arg): print 'this is bbb',type(arg),arg arg=arg+'213' return func(arg)
相关文章
相关标签/搜索