python两个字典合并,两个list合并

https://www.cnblogs.com/zhaoyingjie/p/8675365.html

 

合并字典

# 合并两个字典
dic1 = {"你好": "123", "大家好": "456"}
dic2 = {"my": "789", "boss": "1011", "code": "1213"}
dic1.update(dic2)
print(dic1)

 

posted on 2020-03-07 00:58  芦荟~lh  阅读(88)  评论(0编辑  收藏  举报

导航