python 二维数组键盘输入
2021-07-04 08:07
阅读:452
标签:class col append python pre 维数 range pen code python 二维数组键盘输入 标签:class col append python pre 维数 range pen code 原文地址:https://www.cnblogs.com/reaptomorrow-flydream/p/9613847.html
1 m = int(input())
2 grid = [[] for i in range(m)]
3 for i in range(m):
4 line = input().split(‘ ‘)
5 for j in range(len(line)):
6 grid[i].append(int(line[j]))
评论
亲,登录后才可以留言!