Commit fe19dc10 by BellCodeEditor

auto save

parent b0021866
Showing with 1 additions and 1 deletions
dict={'辣条':2,'巧克力':5,'薯片':3,'烤肉':10,'果冻':2} dict={'辣条':2,'巧克力':5,'薯片':3,'烤肉':10,'果冻':2}
k=input("你想要什么") k=input("你想要什么\n")
if k in dict: if k in dict:
print("您需要的"+k+"需要"+str(dict[k])+"元") print("您需要的"+k+"需要"+str(dict[k])+"元")
else: else:
......
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