Python中字典合并

字典合并:

def merge(x,y):
    z = x.copy()
    z.update(y)
    return z

 

posted @ 2020-05-27 07:36  清源居士  阅读(301)  评论(0编辑  收藏  举报