Commit 5caf611a by BellCodeEditor

save project

parent 22646f5f
Showing with 10 additions and 4 deletions
...@@ -4,8 +4,14 @@ c={'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':1,'奥利奥':10,'巧克力': ...@@ -4,8 +4,14 @@ c={'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':1,'奥利奥':10,'巧克力':
goods = {'一':a,'二':b,'三':c} goods = {'一':a,'二':b,'三':c}
name=input('名:')
d=goods[name]
for k,v in d.items():
print(k,v)
name=input('名:')
print("*"*50)
if name in goods:
d=goods[name]
for k,v in d.items():
print(k,v)
print("*"*50)
else:
print("亲,你输入的不正确")
print("*"*50)
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