Commit 6e253e45 by BellCodeEditor

save project

parent 9b3434cf
Showing with 4 additions and 2 deletions
dict={'可乐':2,'果汁':4,'矿泉水':1}
k=input('你买什么')
if k in dict:
print('ok您买的'+k+'要'+dict[k]+'块钱')
\ No newline at end of file
print('ok您买的'+k+'要'+str(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