Commit e87eb4fe by BellCodeEditor

save project

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