python字典拼接方法

python的dict拼接有多种方法,其中一种很好用而且速度非常快:

    x = {**a, **b}

效果等价于:

x = a.copy()
x.update(b)

注意update()是没有返回值的

https://segmentfault.com/a/1190000010567015

原文地址:https://www.cnblogs.com/dylanchu/p/9953080.html