原文地址:http://5iqiong.blog.51cto.com/2999926/806230
dict={"a":"apple","b":"banana","o":"orange"}
for i in dict:
print "dict[%s]=" % i,dict[i]
for (k,v) in dict.items():
print "dict[%s]=" % k,v
for k,v in dict.iteritems():
print "dict[%s]=" % k,v
for k,v in zip(dict.iterkeys(),dict.itervalues()):
print "dict[%s]=" % k,v