Commit ad98c1de by BellCodeEditor

save project

parent 83b73772
Showing with 15 additions and 0 deletions
cost = {"小明":58,"小刚":90,"小李":57,"小白":53}
cost = {"小明":58,"小刚":90,"小李":57,"小白":53}
k = input("请输入你的名字")
v = int(input("请输入你的成绩:"))
if k in cost:
if v > cost[k]:
cost[k] = v
print("恭喜你"+k+"同学"+"你的成绩已更新为"+str(v))
else:
print("很遗憾本次成绩没能刷新。")
else:
cost[k]=v
print("恭喜你"+k+"同学,你的第一次成绩"+str(v)+"已经上传")
\ 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