Commit 35d76ded by BellCodeEditor

save project

parent c99a4ce7
Showing with 12 additions and 0 deletions
dict={"a":56,"b":87,"c":99,"d":34}
k=input("请输入姓名")
v=input("请输入分数")
if k in dict:
if int(v)>dict[k]:
dict[k]=int(v)
print("您的成绩已更新为"+v)
else:
print("您的成绩未更新!")
else:
dict[k]=int(v)
print("您的新成绩为"+v)
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