Commit 8ad3e2af by BellCodeEditor

save project

parent b3d52210
Showing with 14 additions and 0 deletions
dict={"小明":30,"小雨":60,"小妹":100}
k=input("你的姓名是什么")
v=input("你的最新成绩是什么")
if k in dict:
if int(v)>dict[k]:
print("成绩已刷新")
else:
print("成绩未刷新")
else:
dict[k]=int(v)
print(dict)
print("您的第一次成绩已刷新")
\ No newline at end of file
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