Commit 4fbd2640 by BellCodeEditor

auto save

parent a75aa89f
Showing with 13 additions and 10 deletions
score={"小明":80,"小红":90} scrore={'小明':77,'老八':88,'梁志超':91,'玛卡巴卡':100}
name=input("名字:") k=input("你*******,快输你姓名")
s=input("成绩:") v=input("你*******,你多少分")
if name in score: if k in scrore:
if int(v)>scror[k]:
elif int(s)>score[name]: scrore[k]=int(v)
score[name]=int(s) print("*******+'k'你***的成绩已更新,艹,下次不给你更新了!!!!!!!")
else:
print('***,你活该比上次分低不给你更新了")
else: else:
score[name]=int(s) print('***,你进来了")
print(score) \ No newline at end of file
\ No newline at end of file
...@@ -4,6 +4,7 @@ s=input("成绩:") ...@@ -4,6 +4,7 @@ s=input("成绩:")
if name in score: if name in score:
if int(s)>score[name]: if int(s)>score[name]:
score[name]=int(s) score[name]=int(s)
else: else:
score[name]=int(s) score[name]=int(s)
print(score) 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