Imagine that you have:
(想象一下您有:)
keys = ['name', 'age', 'food']
values = ['Monty', 42, 'spam']
What is the simplest way to produce the following dictionary?
(产生以下字典的最简单方法是什么?)
a_dict = {'name' : 'Monty', 'age' : 42, 'food' : 'spam'}
ask by Guido translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…