there is a list, after looping, it changes. But I do nothing to change it, just use it.
a = [[1,1,1,1], [0,0,1,1], [1,1,0,0], [0,0,0,0]]
b = a[:]
for i in range(4):
for j in range(4):
b[i][j] = a[j][i]
then a becomes [[1, 0, 1, 0], [0, 0, 1, 0], [1, 1, 0, 0], [0, 0, 0, 0]]
I really appreciate it if someone tells me what happened and how to fix this problem.