x=[[0]]*3 x[0][0]=1 print(x) 结果为[[1],[1],[1]] 而不是[[1],[0],[0]] 为什么?
引用与复制的问题,看这篇博客:https://blog.csdn.net/wangxinginnlp/article/details/53201450