Python操做字典取Key對應的值

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

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

for  in  d.keys():
     print (i,d[i])
相關文章
相關標籤/搜索