Commit 5b694375 by BellCodeEditor

save project

parent 915c98f6
Showing with 15 additions and 4 deletions
dict={"小张":10,"小黑子":25,"刘华强":43,"老冯":68,"ikun":88,"高启强":91}
k=input("姓名")
i=input("成绩")
if k in dict:
if int(i)>dict[k]:
dict[k]=int(i)
print(k+"同学"+"你的成绩已更新为"+i+"分")
else:
print(k+"同学成绩未更新")
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict={'可口可乐':100,'旺仔牛奶':110,'农夫山泉':80,'辣条':120,'巴西烤肉':2000,'果冻':400,'乐事':500,'奥利奥':100,'巧克力':600,"饼干":70}
dict={'可口可乐':10000000000000,'旺仔牛奶':11000000000,'农夫山泉':8000000,'辣条':12000000,'巴西烤肉':2000000000,'果冻':400000000,'乐事':500000000,'奥利奥':100000000,'巧克力':600000000,"饼干":700000000}
j=input("你要买什么?")
if j in dict:
print("给我"+str(dict[j])+"元")
print("给我"+str(dict[j])+"元"+"不给毙了你")
else:
print("这没有,爱买不买,哪凉快哪待着去")
\ No newline at end of file
print("这没有,爱买不买,哪凉快哪待着去"
#来试试吧
\ 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