擅长:python、mysql、java
<p>我有一个类似的问题,就是想在其他字典中更改字典的结构(删除/添加)dicts。</p>
<p>对于我的情况,我创建了一个dict的deepcopy</p>
<blockquote>
<p>A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.</p>
</blockquote>
<p>希望这有帮助!</p>