2009-10-30 2つのlistからdictを作成 python >>> L1 = [1,2,3] >>> L2 = [4,5,6] >>> zip(L1, L2) [(1, 4), (2, 5), (3, 6)] >>> dict(zip(L1,L2)) {1: 4, 2: 5, 3: 6}