Python中字典合并

字典合并:

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

 

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