Commit 43931532 by BellCodeEditor

save project

parent 61ad1317
Showing with 4 additions and 4 deletions
...@@ -4,9 +4,9 @@ s=input("请输入你的最新成绩") ...@@ -4,9 +4,9 @@ s=input("请输入你的最新成绩")
if n in scort: if n in scort:
if int(s)>score[n]: if int(s)>score[n]:
score[n]=int(s) score[n]=int(s)
print("亲爱的"+k+"同学,恭喜你~成绩已更新为"+v+"分!") print("亲爱的"+n+"同学,恭喜你~成绩已更新为"+s+"分!")
else: else:
print("亲爱的"+k+"同学,遗憾地通知你,成绩未被刷新") print("亲爱的"+n+"同学,遗憾地通知你,成绩未被刷新")
else: else:
score[n]=int(s) score[n]=int(s)
print("亲爱的"+k+"同学,您的第一次成绩是"+v+"分") print("亲爱的"+n+"同学,您的第一次成绩是"+s+"分")
\ No newline at end of file \ 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