Commit 97c62669 by BellCodeEditor

auto save

parent aa5316cc
Showing with 6 additions and 2 deletions
......@@ -4,5 +4,9 @@ a=input("输入商品:")
for i in dict:
if i==a:
print("您要的商品"+a+"价格是"+str(dict[a])+"元")
else:
print("没有")
if a in dict:
print("您要的商品"+a+"价格是"+str(dict[a])+"元")
\ No newline at end of file
print("您要的商品"+a+"价格是"+str(dict[a])+"元")
else:
print("None")
\ 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