Python 2维数组90度旋转

一、二维列表

a = [[col for col in range(4)] for row in range(4)]

[[0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3]]

posted @ 2018-06-26 21:37  Presley  阅读(234)  评论(0编辑  收藏  举报