Commit 4fbd2640 by BellCodeEditor

auto save

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