📜  循环遍历python代码示例中dict的键和值

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

代码示例2
d = {'x': 1, 'y': 2, 'z': 3} 
for key in d:
    print key, 'corresponds to', d[key]