Python解法: # # # @param matrix int整型二维数组 # @return int整型一维数组 # class Solution: def spiralOrder(self , matrix ): # write code here result = [] #返回值 if matrix == []: return [] # 当二维数组是空或任何一个维度是0,直接返回 m = len(matrix) #行数 n = len(matrix[0]...