例如:
d = {1:{'name':'x', 'age':24, 'address':{'country':'zzz', 'zip':12345}}, 2:{'name':'y', 'age':21, 'address':{'country':'yyy', 'zip':54321}}, 3:{'name':'z', 'age':25}}
我们如何以优化的方式找到最多 3 层(字典内的字典)的字典。
python dictionary
dictionary ×1
python ×1