为什么列表理解方法创建多维数组效率低下?

时间:2018-11-19 06:58:57

标签: python python-3.6

我正在研究Magnus Lie Hatland的Python算法。书中有一个问题

Why would it be problematic to create a 10×10 array with the expression [[0]*10]*10?

有人可以用上述创建多维数组的方法来解释这个问题吗?

0 个答案:

没有答案