python implements the assignment of one-dimensional sequence loops to two-dimensional sequence problems, resorting to
a = [0 br 0]
b = []
for i in range (4):
a[3] = i
b.append(a)
print b
what you want to achieve is
[[0,0,0,0], [0,0,0,1], [0,0,0,2], [0,0,0,3]]
but the reality is:
[[0,0,0,3], [0,0,0,3], [0,0,0,3], [0,0,0,3]]
where is the problem?