Commit 0a20b608 by BellCodeEditor

save project

parent da481e35
Showing with 7 additions and 0 deletions
dict={'可乐':3,'旺仔牛奶':4,"农夫山泉":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