from addict import Dict mapping = Dict() mapping.a.b.c.d.e = 2 print(mapping). 首先实例化Dict()对象。 然后进行嵌套,比如上面是最外层到最内层嵌套a b c d e。
確定! 回上一頁