Commit 63f68c09 by BellCodeEditor

save project

parent 4ab0df01
Showing with 12 additions and 8 deletions
# 直接运行以下代码,说说你的发现: score={'sb':90,'ll':9,'nb':0,'wd':95,'nd':97,'lb':90,}
q=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] k=input("您的姓名")
q[3]=40 v=input("你的最新成绩是")
print(q[3]) if k in score:
w = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} if int(v)>score[k]
w['周亮']=100 print('亲爱的'+k+'同学恭喜你,你的成绩被刷新了')
print(w['周亮']) else:
\ No newline at end of file print('亲爱的'+k+'同学,遗憾,你的成绩未被刷新')
else:
score[k]=int(v)
print('亲爱的'+k+'同学,你的成绩'v'已上传)
\ 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