Single

python-合并多个dict

def Merge(dict1, dict2):
    # 合并dict
    res = {**dict1, **dict2}
    return res


Merge(dict1,dict2)

文章有(1)条网友点评

发表评论