Commit d8e7c6fb by BellCodeEditor

save project

parent 848f79a4
Showing with 9 additions and 0 deletions
dict{'可乐,牛奶,山泉,辣条}
\ No newline at end of file
dict={'可乐':99,'牛奶':9,'山泉':100,'辣条':1}
j=input("你要买什么?")
if j in dict:
print("你的"+j+"要"+str(dict[j])+"元")
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