[Reserved] python merge two dict

https://segmentfault.com/a/1190000010567015

Reprint:

python2

z = x.copy()
z.update(y)

python3.5

z = {**x, **y}

 

Guess you like

Origin www.cnblogs.com/workingdiary/p/11550141.html