python 的话 简单 s = '' whie 1:     try:         s += input()     except:         break grid = eval(s) // 字符串直接转换成列表 对于这种不指定行和列个数的要 用 while try except 来写