我试图标记10x10 python数组的标题 你能告诉我我做错了吗? 我需要这样的东西: Board_example
提前致谢
Board=[]
rows= 10
columns= 10
for i in range (rows):
Board.append([])
for j in range (columns):
Board[i].append(None)
for i in range(rows):
for j in range (columns):
Board[i][j] = 0
suma = 0
for i in range (rows):
for j in range (columns):
suma = suma + Board[i][j]
#print(Board,"Su suma es:", suma)
for i in range (rows):
for j in range (columns):
print(Board[i][j],end=" ")
print("")