心累,一直越界,要判断不为空,print end参数避免换行打完收工。 m,n = list(map(int,(input().split(' ')))) ans = [] for i in range(m): ans.append(list(map(int,(input().split(' '))))) #ans = [[1,2],[3,4]] #ans = [[1,2,3],[4,5,6],[7,8,9]] while ans and ans[0]: for row in ans: print(row.pop(0),end=' ') for i in...