Commit a649206d by BellCodeEditor

save project

parent 91dd1228
Showing with 12 additions and 0 deletions
score={'小李':85,'小王':79,'小张':90,'小丽':93}
name=input('姓名:')
newscore=input('新成绩:')
if name in score:
if int(newscore)>score[name]:
score[name]=int(newscore)
print(name+',你的分数更新为:'+newscore)
else:
print('分数未更新。')
else:
print('新同学'+name+'你的第一次成绩为'+newscore+'分。')
\ 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