2009-03-27 Python: 2次元配列の転置 Python プログラミング Pythonクックブックより a = [[1, 2, 3], [4, 5, 6]] print map(list, zip(*a)) [[1, 4], [2, 5], [3, 6]]