Commit e7e8d250 by BellCodeEditor

save project

parent ab547791
Showing with 9 additions and 3 deletions
goods={"旺仔牛奶":{'名字':'旺仔牛奶','价格':12}} goods={"旺仔牛奶":{'名字':'旺仔牛奶','价格':12}}
print(goods["旺仔牛奶"]) q=input("请输入要查询的姓名")
if q in goods:
a=goods[q]
for j,l in a.items():
print(30*"*")
print(j,l)
print(30*"*")
else:
print("请重新输入")
#for k,v in goods.items():
#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