我有一个看起来像这样的字典列表
[{"Name": John, "Score": 1}, {"Name": John, "Score": 2}, {"Name": Steve, "Score": 3}, {"Name": Steve, "Score": 4}]
我怎样才能像这样组合这些字典呢?
[{"Name": John, "Score": [1,2]},{"Name": Steve, "Score": [3,4]}]
人到中年有点甜
largeQ
相关分类