1
相似所以我這一下Python字典的名單如下:添加鍵的值的基礎上,其他主要
[{"word": 'app idea', "post" : 'i just had an app idea', "likes" : 22},
{"word": 'app idea', "post" : 'this is a great app idea', "likes" : 29},
{"word": 'app development', "post" : 'let us start our app development', "likes" : 32},
{"word": 'app development', "post" : 'app development will take time', "likes" : 23},
{"word": 'app data', "post" : 'delete the app data', "likes" : 32}]
我要添加喜歡那裏的字是相同
所以最終輸出看起來像這樣
[{"word": 'app idea', "likes" : 51},
{"word": 'app development', "likes" : 55},
{"word": 'app data', "likes" : 32}]