📜  如何在python代码示例中遍历ordereddict

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

代码示例1
from collections import OrderedDict

d = OrderedDict()
d['a'] = 1
d['b'] = 2
d['c'] = 3

for key, value in d.items():
    print key, value