Commit 05298fad by BellCodeEditor

save project

parent 923885bd
Showing with 14 additions and 0 deletions
score={'小明':77,'小王':99,'小李':66,'小美':100}
while True:
k=input("你叫什么:")
j=input("你考几分:")
if k in score:
if int(j) > score[k]:
score[k]=int(j)
print('成绩更新')
else:
print('成绩逆天')
else:
score[k]=int(j)
print(score)
\ 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