list=[[8,1,6],[3,5,7],[4,9,2]]
执行下列python程序,结果仍能构成九宫格数据的是( )
for x in range(3):
for y in range(3):
list1[x][y]=list[x-2][y]
for i in list1:
print(i)
B . list1=[[0,0,0],[0,0,0],[0,0,0]]for x in range(3):
for y in range(3):
list1[x][y]=list[y][x]
for i in list1:
print(i)
C . list1=["","",""]for x in range(3):
list1[x]=list[x][::-1]
for i in list1:
print(i)
D . list1=[[0,0,0],[0,0,0],[0,0,0]]for x in range(3):
for y in range(3):
list1[x][y]=list[y][2-x]
for i in list1:
print(i)