https://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth

2021-04-16 14:29

阅读:568

标签:over   color   ack   style   class   stack   col   margin   val   

https://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth

 

import copy

d = {‘k‘: ‘kv‘}
j_sc = {‘k1‘: copy.copy(d)}
j_dc = {‘k1‘: copy.deepcopy(d)}
jc = {‘k1‘: d.copy()}
k = {‘k1‘: d}
d = {‘j‘: ‘jv‘}

https://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth

标签:over   color   ack   style   class   stack   col   margin   val   

原文地址:https://www.cnblogs.com/yuanjiangw/p/11917367.html


评论


亲,登录后才可以留言!