Commit e24f7470 by BellCodeEditor

save project

parent 92532a42
Showing with 7 additions and 8 deletions
dict_hero={'三':10,'一':21,'五':22,'长':29,'七':30} dict= {'乐':3,'奶':4,'山':1,'巴':2,'果':4,'事':5,'奥':10,'力':6}
print(dict_hero) j=input("你买啥?")
print(dict_hero['长']) if j in dict:
dict_hero['七']=32 print('你买的'+j+'要花'+str(dict[j])+'元')
print(dict_hero) else:
dict_hero['十']=25 print('没货')
print(dict_hero) \ 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