标签:
def deco(li): li = [1,2,3] def _deco(): li[1] = 20
a = [1,2,3] deco(a) print(a)
Python 闭包的无副作用
原文地址:http://my.oschina.net/innovation/blog/360319