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

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

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