Commit 0dbee99b by BellCodeEditor

save project

parent 73e5d69b
Showing with 14 additions and 2 deletions
score={'小明': ,'':,'':,'':,'':,'':,'':,}
\ No newline at end of file
score={'小明':58 ,'小王':66,'小张':58,'小美':10}
k=input('请输入姓名:')
v=input('请输入成绩:')
if k in score:
if int(v)>score[k]:
score[k]=int(v)
print('你好'+k+'成绩更新为'+v+'分。')
else:
print('你好,你的成绩未刷新。')
else:
score[k]=int(v)
print('你好'+k+'你的第一次成绩'+v+'分已上传。')
\ 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