Commit 6d922665 by BellCodeEditor

save project

parent 410e49d5
Showing with 7 additions and 0 deletions
dict = {'农夫山泉':1,'可口可乐':3,'奥利奥':10,'巴西烤肉':8,'瓜子':5,'狗粮':9}
k = input("请输入你想要的商品,该机目前在售:"+str(dict))
if k in dict:
print(k+'目前售价为'+str(dict[k]))
else:
print('很抱歉,您所输入的商品'+k+'未在售,我们会尽快为您补货')
\ 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