Commit db608b59 by BellCodeEditor

save project

parent 538fe772
Showing with 12 additions and 63 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ score_dic={"David":100,"Lily":90,"Lucy":93,"Eric":92,"Tony":89}
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} name=input("请输入你的名字:")
input_a = input("请输入你要选择的商品:") score=input("请输入你的成绩:")
if input_a in dict.keys(): if name in score_dic:
print("请付:"+str(dict[input_a])) if int(score) > score_dic[name]:
score_dic[name]=int(score)
print(name + "的成绩已经更新为:" +score)
else:
print(name + "同学,你的成绩没有刷新")
else: else:
print("没有你输入的商品") score_dic[name]=int(score)
print(name+"同学,你的第一次成绩"+score+"已经录入")
print(score_dic)
......
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