list /tuple转置: 以二维grid[][]为例: grid = [[row[i] for row in grid] for i in range(len(grid[0]))] 效果如图:
確定! 回上一頁