Commit b6b052ab by BellCodeEditor

save project

parent 17e42124
Showing with 3 additions and 0 deletions
......@@ -5,8 +5,10 @@ goods={'饮料售货机1':goods1,'饮料售货机2':goods2,'饮料售货机3':go
input('你想知道什么饮料的价格?')
drink=input('饮料名:')
if name in goods():
print('*'*30)
info=goods[drink]
for k,v in info.items():
print(k,v)
print('*'*30)
else:
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