返回顶部

收藏

Dictionary: items and iteritems

更多
d = {'title': 'Python Web Site', 'url': 'http://www.python.org', 'spam': 0}

#The iteritems method works in much the same way, but returns an iterator instead of 
#a list.

it = d.iteritems()
print it

标签:Python,Dictionary

收藏

0人收藏

支持

0

反对

0

发表评论