Commit 68c10fdb by BellCodeEditor

save project

parent 211270bb
Showing with 4 additions and 3 deletions
dict={'可口可乐':3,'奶':4,'水':1} dict={'可口可乐':3,'奶':4,'水':1}
dict={'可口可乐':3,'奶':4,'水':1} dict={'可口可乐':3,'奶':4,'水':1}
k=input("买啥?") k=input('买啥')
if k in dict: if k in dict:
print('您的'+k+"需要支付"+str(dict[k])+"元") print('您的'+k+"需要支付"+str(dict[k])+"元")
else else:
print('没有') 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