例題2.10

等我刷把宗师發表於2024-10-22

例題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)

相關文章