📜  合并字典 python 代码示例

📅  最后修改于: 2022-03-11 14:46:51.748000             🧑  作者: Mango

代码示例6
# list_of_dictionaries contains a generic number of dictionaries
# having the same type of keys (str, int etc.) and type of values
global_dict = {}

for single_dict in list_of_dictionaries:
    global_dict.update(single_dict)