Commit 27ff1c20 by BellCodeEditor

save project

parent 410efbb7
Showing with 8 additions and 0 deletions
dict={'可乐':3,'牛奶':4,'水':2,'辣条':1,'烤肉':2,'果冻':4,'乐事':5,'奥利奥':10}
j=input("你要买什么?")
if j in dict:
print('你好,你要买的'+j+'需要支付'+'¥'+str(dict[j]))
else:
print('ERROR')
\ 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