Commit c58981c3 by BellCodeEditor

save project

parent 7c650896
Showing with 13 additions and 0 deletions
d={'张三':71,'李四':85,'王五':89}
name=input('名字:')
sorce=input('分数')
if name in d:
if int(sorce)>d[name]:
d[name]=int(sorce)
print('亲爱的'+name+'同学,您的分数更新为'+sorce+'分')
else:
print('亲爱的'+name+'同学,您的分数比原分数低')
else:
d[name]=int(sorce)
print('亲爱的'+name+'同学,您的第一次分数成功上传')
\ 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