Commit 69c62fa5 by BellCodeEditor

save project

parent d4575308
Showing with 12 additions and 0 deletions
score={"小民":77,"小王":86,"小美":100,"小张":58}
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+"已上传")
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