Python 代码
class Solution(object):
def printMatrix(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
res = []
while matrix:
res += matrix[0]
matrix = list(zip(*matrix[1:]))
matrix = matrix[::-1]
return res
太牛比了 但是看不懂