热门
设有两个字典foo和bar,下面介绍合并两个字典的用法:
foo = {'name':'chen'} bar = {'age':12} result = {**foo, **bar} print(result) # > {'name': 'chen', 'age': 12}