http://www.cnblogs.com/kaituorensheng/archive/2013/01/24/2875456.html

d={'a':1,'b':2,'c':3}

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

相关文章: