Commit 9ca901cd by BellCodeEditor

save project

parent e6e7a0d8
Showing with 14 additions and 5 deletions
dict+{'可乐可口':3,'旺一旺牛奶'4,'九转大肠':12,'腐肉'1} score={'可乐':63,'牛奶'94,'大肠':92,'日你妈'81}
k=input('你想买什么?') k=input('请输入您的姓名:')
if k in dict: v=input('请输入你的最新成绩:')
print('叮咚~您的'+k+) if k in score
\ No newline at end of file if int(v)>score[k]:
score[k]=int(v)
print(k+'同学,恭喜你成功更新为'+v+'分')
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