1 篇文章
python篇历字典中的值 - 编程语言
>>> dict1 = {'name': 'earth', 'port': 80}
>>> for key in dict1:
... print 'key=%s,value=%s' % (key,dict1[key])
...
ke...
>>> for key in dict1:
... print 'key=%s,value=%s' % (key,dict1[key])
...
ke...
0
152