Commit 7e488049 by BellCodeEditor

auto save

parent 9ed85b40
Showing with 8 additions and 0 deletions
dict = {'农夫山泉':1,'奥利奥':10}
k = input('你要买什么?')
x = input('你要买几个?')
if k in dict:
print('买' + k +'需要' + str(int(x)*(dict[k])) + '元')
else:
print('该商品暂时缺货')
\ 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