我坚持二维数组
row,col = map(int,input().split())
matrix1 = [[0 for _ in range(col)] for _ in range(row)]
matrix2 = [[0 for _ in range(row)] for _ in range(col)]
for i in range(row):
matrix1[i] = list(map(int,input().split()))
for i in range(row):
for j in range(col):
matrix2[j][i] = matrix1[i][j]
for i in range(col):
for j in range(row):
print(matrix2[i][j],end=" ")
print()