【Python学习】
dict={"name":"python","english":33,"math":35} print "##for in " for i in dict: print "dict[%s]=" % i,dict[i] print "##items" for (k,v) in dict.items(): print "dict[%s]=" % k,v print "##iteritems" for k,v in dict.iteritems(): print "dict[%s]=" % k,v
for i in dict.keys():
print i
dict 遍历方式
posted on 2017-10-10 16:07 WegZumHimmel 阅读(91) 评论(0) 编辑 收藏 举报