📜  python 遍历多维字典 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:25.361000             🧑  作者: Mango

代码示例1
d = {'dict1': {'foo': 1, 'bar': 2}, 'dict2': {'baz': 3, 'quux': 4}}

for i in d.keys():
    print(i)
    for j in d[i].keys():
        print(j)