列表转字典

zip
list1=[1,2,3]
list2=['a','b','c']
dict(zip(list1,list2))
{1: 'a', 2: 'b', 3: 'c'} 
原文地址:https://www.cnblogs.com/Liang-jc/p/8921535.html