Commit c9ac1af7 by BellCodeEditor

save project

parent 01782910
Showing with 5 additions and 4 deletions
......@@ -10,7 +10,9 @@
# print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={"张三":79,"李四":83,"王五":97}
dict_hero["李四"]=105
print(dict_hero)
print(dict_hero["张三"])
dict_hero["李四"]=99
print(dict_hero)
\ No newline at end of file
dict_hero["钱六"]=150
print(dict_hero)
if "张三" in dict_hero:
print("张三的成绩是:",dict_hero["张三"])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment