Commit e87eb4fe by BellCodeEditor

save project

parent 35d76ded
Showing with 7 additions and 12 deletions
dict={"a":56,"b":87,"c":99,"d":34} score = {"语文":91,"数学":88,"英语":85}
k=input("请输入姓名") for k,v in score.items():
v=input("请输入分数") print(k)
if k in dict:
if int(v)>dict[k]: print(v)
dict[k]=int(v)
print("您的成绩已更新为"+v)
else:
print("您的成绩未更新!")
else:
dict[k]=int(v)
print("您的新成绩为"+v)
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