Commit 08b963ad by BellCodeEditor

save project

parent 1890843f
Showing with 15 additions and 0 deletions
CJ = {}
while True:
name = input("请输入你的姓名:")
scroe = input("请输入你的成绩:")
if name in CJ:
if int(scroe) > CJ[name]:
print("亲爱的" + name +"同学,你的成绩"+ scroe +"分已更新。" )
CJ[name]=int(scroe)
else:
print("你的最高成绩没有变化。")
else:
CJ[name]=int(scroe)
print("亲爱的" + name +"同学,你的第一次成绩"+ scroe +"分已添加。" )
print(CJ)
\ 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