Commit 1d4a5407 by BellCodeEditor

auto save

parent 1e42d300
Showing with 5 additions and 3 deletions
...@@ -2,8 +2,10 @@ score={'小明':34,'肖坤':37,'大聪明':45} ...@@ -2,8 +2,10 @@ score={'小明':34,'肖坤':37,'大聪明':45}
v=input('名字') v=input('名字')
k=input('多少分') k=input('多少分')
if k in score: if k in score:
if int(k)>score[v] if int(k)>score[k]:
print('直接覆盖') score[k]=int(k)
print('直接覆盖')
else:
print('很遗憾,没有覆盖')
else: else:
print('很遗憾,没有覆盖')
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