字典高级_历篇
person = {'name':'王五','age':'18','sex':'男'}
print(person)
# 历遍字典中的key
for key in person.keys():
print(key)
# 历遍字典中的values
for values in person.values():
print(values)
# 历遍字典中的key和values
for key,values in person.items():
print(key,values)
# 历遍字典中所有项/元素
for item in person.items():
print(item)