📜  如何在python代码示例中配对两个列表

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

代码示例2
#Two lists
keys = ["Foo", "Bar", "Done"]
values = [1, 6, 9]
  
d = dict(zip(keys, values))
d
>>>{'Foo': 1, 'Bar': 6, 'Done': 9}