Commit 93c42c05 by BellCodeEditor

save project

parent c63ee3c6
Showing with 4 additions and 3 deletions
score={"浩然":29,"斗王":45,"仅仅":90} score={"浩然":29,"斗王":45,"仅仅":90}
...@@ -2,9 +2,10 @@ score={"浩然":29,"斗王":45,"仅仅":90} ...@@ -2,9 +2,10 @@ score={"浩然":29,"斗王":45,"仅仅":90}
s=input("你的名字叫什么?") s=input("你的名字叫什么?")
j=input("你的成绩是多少?") j=input("你的成绩是多少?")
if s in score: if s in score:
if int(v)>score[j] if int(j)>score[s]:
score[s]=int[j]
else: else:
print('你的成绩已更新') print('你的成绩已更新')
else: else:
int(v)=score[j] score[s]=int[j]
print('你的成绩已更新') 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