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)
相關文章
相關標籤/搜索