# python3.5+ >>> z = {**x, **y} # python3.9+ >>> z = x | y 参考:https://stackoverflow.com/a/26853961/7151777