Commit 54584911 by BellCodeEditor

save project

parent b7498cbe
Showing with 10 additions and 0 deletions
goods1 = {'可口可乐':3,'脉动':4,'牛奶':2}
goods2={'冰红茶':5,'咖啡':10,'奶茶':6,'矿泉水':1}
goods3={'绿茶':3,'雪碧':3,'红茶':4}
goods={'饮料售货机1':goods1,'饮料售货机2':goods2,'饮料售货机3':goods3}
input('你想知道什么饮料的价格?')
drink=input('饮料名:')
info=goods[drink]
for k,v in info.items():
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