阅读背景:

python中改变list中list值的问题

来源:互联网 
</pre><pre name="code" class="python">L = []
s = [0,0,0]

for i in range(3):
    L.append(s)
L[1][1]=1
print L
</pre><pre name="code" class="python">L = []
s 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: