Commit e6d3c611 by BellCodeEditor

save project

parent c761dde6
cost={"小明":58,"小刚":90,"小李":57,"小白":85,"小燕":13}
cost={"小明":58,"小刚":90,"小李":57,"小白":85,"小燕":13}
k=input("请输入你的名字")
v=input("请输入你的成绩")
if k in cost:
if int(v)>cost[k]:
cost[k]=int(v)
print("成绩已更新")
else:
cost[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