Fork me on GitHub
摘要: matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]] 顺序旋转 def order_rotate(matrix): res = list(zip(*matrix)) res = [alist[::-1] for alist in res] return res re 阅读全文
posted @ 2021-03-05 16:25 西西嘛呦 阅读(171) 评论(0) 推荐(0) 编辑