Commit 9ebfe8f1 by BellCodeEditor

save project

parent 4a169385
Showing with 7 additions and 8 deletions
西游 = {"唐僧":"唐三藏"} BHSMJ = {'笔记本':5,'橡皮':1,'铅笔':2,'文具盒':5}
西游['大师兄']="孙悟空" j = input("你想要买什么物品?")
西游['二师兄']="猪八戒" if j in BHSMJ:
西游['三师弟']="沙和尚" print('叮咚,您想要买的商品'+'j'+'需要支付'+str(BHSMJ[j])+'元')
print(西游) else:
if'唐僧'in 西游: print("百货售卖机中没有此商品,尽情期待!")
print(西游['唐僧']) \ No newline at end of file
\ 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