Pythonでリストを転置 def transpose(matrix): return [list(row) for row in zip(*matrix)] matrix = [ [1, 2, 3], [4, 5, 6], [···