a=[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b=[[], [], []]
print(b)
for i in a:
for j in i:
b[a.index(i)].append(j)
a[0][0]=0
print(a)
print(b)
a=[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b=[[]]*3
print(b)
for i in a:
for j in i:
b[a.index(i)].append(j)
a[0][0]=0
print(a)
print(b)