Commit 653494c2 by BellCodeEditor

save project

parent 38ff37d1
Showing with 7 additions and 0 deletions
dict={'巧克力':4,'冰淇淋':3,'农夫山泉':2,'辣条':1}
k=input("你想买什么?")
if k in dict:
print("你要买的"+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