<p>我想知道为什么要在我的列表中的每个列表中添加一个数字。不仅仅是我选择的那个([0])。写[0]和在append后面写其他数字有什么区别</p>
<pre><code>j = [[]] * 5
j[0].append(5) # add 5 to every list on list
j[1].append(4) # what's the diffrence? [1] or [0]; it adds number to every element anyway
print (j)
j.append(0) # add 0 to the main list
print (j)
</code></pre>