我将如何从这样的列表中创建字典:
list = [('a', [10,3]), ('a', [30,20]), ('b', [96,45]), ('b', [4,20])]
我想要的结果是:
dict = { 'a':[10,3,30,20], 'b':[96,45,4,20] }
python dictionary list
dictionary ×1
list ×1
python ×1