📅  最后修改于: 2022-03-11 14:46:03.139000             🧑  作者: Mango
代码示例1
#Two lists
keys = ["Foo", "Bar", "Done"]
values = [1, 6, 9]
d = dict(zip(keys, values))
d
>>>{'Foo': 1, 'Bar': 6, 'Done': 9}