打印输出列表里的字典

格式[{1:2},{3:4},{5:6}]

a=[{1:2},{3:4},{5:6}]
for dic in a:
    for i in dic:
        print(i,dic[i])

posted on 2021-06-18 16:43  平凡之测  阅读(196)  评论(0编辑  收藏  举报

导航