Commit 63f68c09 by BellCodeEditor

save project

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