def list_to_dictionary(keys,values):
return dict(zip(keys,values))
list1=[1,2,3]
list2=['one','two','three']
print(list_to_dictionary(list1,list2))
{1: 'one', 2: 'two', 3: 'three'}
还可以输入200个字
蝈蝈派【海南省教改项目(Hnjg2022-80)支持】 网站版权所有
Python remained the copyright of our website