Commit e36529f5 by BellCodeEditor

save project

parent 36bdac64
Showing with 7 additions and 2 deletions
dict={"可乐"} dict={"可乐":3"咖啡":6,"牛奶":4"冰红茶":3.5"奶茶":5"矿泉水":1"脉动":4.5}
\ No newline at end of file k=input("请输出你想买得饮料")
if k in dict:
print(k+"的价格是"+str(dict[k])+"元")
else:
print("对不起,"+k+"暂时因缺货无法销售")
\ 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