📜  来自两个列表的字典 - Python 代码示例

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

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