<分区>
Possible Duplicate:
how to convert two lists into a dictionary (one list is the keys and the other is the values)?
如果我有一个整数列表:
L=[1,2,3,4]
我有一个元组列表:
K=[('a','b'),('c','d'),('e','f'),('g','i')]
如何制作一个字典列表,其中键是K中的项目,值是L中的整数,其中每个整数对应于K中的项目
d={('a','b'):1,('c','d'):2,('e','f'):3,('g','i'):4}