Commit 3e0626cc by BellCodeEditor

save project

parent f2f00caf
Showing with 17 additions and 0 deletions
a={"小明":77,"小王":86,"小张":58}
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