【发布时间】:2013-12-18 10:52:33
【问题描述】:
是否有 Python 中的库可用于深度合并字典:
以下内容:
a = { 'first' : { 'all_rows' : { 'pass' : 'dog', 'number' : '1' } } }
b = { 'first' : { 'all_rows' : { 'fail' : 'cat', 'number' : '5' } } }
当我合并时,我希望它看起来像:
a = { 'first' : { 'all_rows' : { 'pass' : 'dog', 'fail' : 'cat', 'number' : '5' } } }
【问题讨论】:
标签: python