Commit 22646f5f by BellCodeEditor

save project

parent 7a2042bf
Showing with 9 additions and 2 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} a={'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
for k,v in goods.items(): b={'辣条':43,'巴西烤肉':2,'果冻':1,'乐事':5,'奥利奥':10,'巧克力':6}
c={'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':1,'奥利奥':10,'巧克力':7}
goods = {'一':a,'二':b,'三':c}
name=input('名:')
d=goods[name]
for k,v in d.items():
print(k,v) print(k,v)
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