Commit debda1ad by BellCodeEditor

save project

parent 9ed85b40
Showing with 6 additions and 0 deletions
a={"农夫山泉":2,"旺仔牛奶":4,"乐事薯片":6,"巴西烤肉":10}
b=input("叮咚~你想要什么?")
if b in a:
print("你买的"+a+"是"+str(a[b])+"元")
else:
print("叮咚~你想买的东西已售罄,请换一个")
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