Commit 05ad8f46 by BellCodeEditor

save project

parent 10e018de
Showing with 7 additions and 0 deletions
dict={'可口可乐':3,'农夫山泉':2,'辣条':1,'自热锅':8,'巴西腊肉':10,'薯片':4}
l=input("你要买什么")
if l in dict:
print(str(l),str(dict[l]))
else:
print(l,'这里没有')
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