Commit 7916dc05 by BellCodeEditor

save project

parent 50f2fa68
Showing with 11 additions and 0 deletions
cost={'小明':69,'小刚':79,'小李':50,'小白':73,'小杨':78,'小刘':87,'小何':54}
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