Commit 9ebfe8f1 by BellCodeEditor

save project

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