7-20 sdut- 矩阵转置(II)
莫名其妙
输入时input().split()
错误
改为 t= [int(x) for x in input().split()]
正确
a,b=map(int,input().split())
num=[]
for i in range(a):
t= [int(x) for x in input().split()]
num.append(t)
for i in range(b):
for j in range(a-1):
print( num[j][i], end=" ")
print(num[-1][i])