标签:print grid nbsp for bsp pytho class python code
grid=[[‘.‘, ‘.‘, ‘.‘, ‘.‘, ‘.‘, ‘.‘], [‘.‘, ‘0‘, ‘0‘, ‘.‘, ‘.‘, ‘.‘], [‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘.‘, ‘.‘], [‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘.‘], [‘.‘, ‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘0‘], [‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘.‘], [‘0‘, ‘0‘, ‘0‘, ‘0‘, ‘.‘, ‘.‘], [‘.‘, ‘0‘, ‘0‘, ‘.‘, ‘.‘, ‘.‘], [‘.‘, ‘.‘, ‘.‘, ‘.‘, ‘.‘, ‘.‘]] for j in range(len(grid[0])): for i in range(len(grid)): print(grid[i][j],end=‘‘) print(‘\n‘)
标签:print grid nbsp for bsp pytho class python code
原文地址:https://www.cnblogs.com/Guhongying/p/9615084.html