m = int(input()) grid = [[] for i in range(m)] for i in range(m): line = input() for j in range(len(line)): grid[i].append(int(line[j])) print(grid)
原文地址:https://www.cnblogs.com/wan-612/p/11288326.html
时间: 2024-10-18 22:21:30
m = int(input()) grid = [[] for i in range(m)] for i in range(m): line = input() for j in range(len(line)): grid[i].append(int(line[j])) print(grid)
原文地址:https://www.cnblogs.com/wan-612/p/11288326.html