Commit f67ed4d7 by BellCodeEditor

save project

parent 26bec31a
Showing with 7 additions and 0 deletions
dict={'可乐':3,'牛奶':3,'水':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