数学建模例题2.10 字典元素的访问示例

`Dict={'age':18,'score':[98,97],'name':'Zhang','sex':'male'}
for item in Dict:
print(item)
print("----------")
for item in Dict.items():
print(item)
print("----------")
for value in Dict.values():
print(value)

print("学号:3005")
`

posted on 2024-10-28 11:44  VVV1  阅读(1)  评论(0编辑  收藏  举报