keys = ['name', 'age', 'food']
values = ['Monty', 42, 'spam']
dictionary = dict(zip(keys, values))
print(dictionary) # {'name': 'Monty', 'age': 42, 'food': 'spam'}
暂无讨论,说说你的看法吧
keys = ['name', 'age', 'food']
values = ['Monty', 42, 'spam']
dictionary = dict(zip(keys, values))
print(dictionary) # {'name': 'Monty', 'age': 42, 'food': 'spam'}
扫码打开当前页
之前