可能重复: 将元组转换为dict
如何更改元组列表,例如:
seq = [(1, 2), (3, 4), (5, 6)]
进入字典:
dicta = { 1:2, 2:4, 5:6 }
python dictionary tuples python-3.x
dictionary ×1
python ×1
python-3.x ×1
tuples ×1