# 定义字典d = {"name": "pyhui", "age": 18}# 遍历字典,得到键与值items = d.items()print(items)for key, val in items: print(key, val)# for item in items:# print(item)
# 定义字典d = {"name": "pyhui", "age": 18}# 遍历字典,得到键与值items = d.items()print(items)for key, val in items: print(key, val)# for item in items:# print(item)