【发布时间】:2019-11-16 02:47:16
【问题描述】:
我有一个清单:
list=[{'Query': 'documents'}, {'entity': 'a'}, {'value': 'b'}, {'entity': 'c'}, {'value': 'd'}, {'records':21}]
我想关注 o/p:
d={'Query': ['documents'],'entity': ['a','c'],'value': ['b','d'],'records':[21]}
【问题讨论】:
标签: list dictionary merge key