Commit b8b9384f by BellCodeEditor

save project

parent 1029ee2a
Showing with 13 additions and 0 deletions
a={"小美":60,"小龙":47,"天天":80,"鹿丸":100}
k=input("请输入您的姓名:")
v=input("请输入您的成绩:")
if k in a:
if int(v)>a[k]:
a[k]=int(v)
print("成绩已更新")
else:
print("成绩不变")
else:
a[k]=int(v)
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