Commit c2ee2c3e by BellCodeEditor

save project

parent b7f9de4a
Showing with 13 additions and 0 deletions
score={"xiaoming":77,"xiaohong":86,"xiaofang":50,"xiaozhang":1000}
k=input("你叫什么")
v=input("你多少分")
if k in score:
if int(v)>score[k]:
score[k]=int(v)
print("亲爱的"+k+"同学,恭喜你的成绩以更新为"+v+"分")
else:
print("亲爱的"+k+"同学,很遗憾你的成绩未被刷新")
else:
score[k]=int(v)
print("亲爱的"+k+"同学,你的第一次成绩"+v+"分数")
\ 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