题解 | #螺旋矩阵#
螺旋矩阵
http://www.nowcoder.com/questionTerminal/ac5544ee0d7247a4ba75e00793c71907
class Solution:
def SpiralMatrix(self , matrix ):
res = []
while matrix:
res += matrix[0]
matrix = list(zip(*matrix[1:]))[::-1]
return res