Commit d02a355d by BellCodeEditor

save project

parent 83b73772
Showing with 6 additions and 0 deletions
dict={'可乐':3,'牛奶':4,'农夫山泉':1}
k=input('你想买什么?')
if k in dict:
print('机器中存有'+k+str(dict[k])+'元。')
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