(Week 8)Python-Leetcode:Spiral Matrix, Spiral Matrix II
54.SpiralMatrix给定m*n矩阵,以螺旋式的顺序返回矩阵中的所有元素Example1:Input:[[1,2,3],[4,5,6],[7,8,9]]Output:[1,2,3,6,9,8,7,4,5]Example2:Input:[[1,2,3,4],[5,6,7,8],[9,10,11,12]]Output:[1,2,3,4,8,12,11,10,9,5,6,7]解题思路由题意,可将