📜  从列表中创建字典键和值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:25.146000             🧑  作者: Mango

代码示例1
keys = ['a', 'b', 'c']
values = [1, 2, 3]
dictionary = dict(zip(keys, values))
print(dictionary) # {'a': 1, 'b': 2, 'c': 3}