Python3 代码
def print2D ( nums, row, col):
for i in range (row):
for j in range (col):
print (nums[i][j], end = " ")
print ("")
row, col = map (int, input().split())
m = [[0] * col for i in range (row)]
for i in range (row):
l = input().split()
for j in range (col):
m [i][j] = int (l[j])
print2D (m, row, col)