Commit fc185314 by BellCodeEditor

save project

parent 9ed85b40
Showing with 35 additions and 8 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ score={'小明':64,'小花':87,'小梅':95,'小刚':53}
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} k=input("请输入你的名字:")
j=input("你要买什么?") t=input("请输入你的最新成绩:")
if j in dict: if k in score:
prink('巧克力'(dict[j])) if int(t)>score[k]:
print("你的最新成绩已经上传")
else:
print("我们只想记住你的最佳成绩")
else: else:
prink() score[k]=int(t)
\ No newline at end of file print("亲爱的'+k+'同学,你的第一次成绩'+t+'分已上传")
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