Commit 001cb018 by BellCodeEditor

save project

parent 7046698a
Showing with 5 additions and 3 deletions
...@@ -4,8 +4,9 @@ goods3={'绿茶':3,'雪碧':3,'红茶':4} ...@@ -4,8 +4,9 @@ goods3={'绿茶':3,'雪碧':3,'红茶':4}
goods={'饮料售货机1':goods1,'饮料售货机2':goods2,'饮料售货机3':goods3} goods={'饮料售货机1':goods1,'饮料售货机2':goods2,'饮料售货机3':goods3}
input('你想知道什么饮料的价格?') input('你想知道什么饮料的价格?')
drink=input('饮料名:') drink=input('饮料名:')
info=goods[drink] if name in score():
for k,v in info.items(): info=goods[drink]
print(k,v) for k,v in info.items():
print(k,v)
else: else:
print('输入错误') 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