Commit 07bbc34a by BellCodeEditor

save project

parent e6e42821
Showing with 4 additions and 7 deletions
dict= {'乐':3,'奶':4,'山':1,'巴':2,'果':4,'事':5,'奥':10,'力':6}
j=input("你买啥?")
if j in dict:
print('你买的'+j+'要花'+str(dict[j])+'元')
else:
print('没货')
\ No newline at end of file
goods = {'乐':3,'奶':4,'山':1,'巴':2,'果':4,'事':5,'奥':10,'力':6}
goods.pop("山")
print(goods)
\ 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