实例
a = {'张无忌': 25, '赵敏': 24}
print(a.items())
print(type(a.items()))
for item in a.items(): # item对象由元组构成
print(item)
print(type(item))
for key, value in a.items(): # 元组由键值对构成
print(key, value)
print(type(key), type(value))
本文链接:http://so.lmcjl.com/news/6651/