list = [([0]*3)for i in range(4)]
print list
i = 0
j = 0
k = 0
while(i < len(list)):
while(j < len(list[0])):
list[i][j] = k;
k = k+1
j = j+1
i = i+1
j = 0
print list
4行3列
list = [([0]*3)for i in range(4)]
print list
i = 0
j = 0
k = 0
while(i < len(list)):
while(j < len(list[0])):
list[i][j] = k;
k = k+1
j = j+1
i = i+1
j = 0
print list
4行3列