Commit f35c5330 by BellCodeEditor

save project

parent 185df21e
Showing with 15 additions and 0 deletions
score={'SB':81,'ZZ':91,'DSB':90,'DZZ':100}
name=input('你叫啥?')
newscore=input('多少分')
if name in score:
if int(newscore)>score[name]:
score[name]=int(newscore)
print('分数更新为'+newscore)
print(score)
else:
print('这次没有之前高')
print(score)
else:
score[name]=int(newscore)
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