Commit fda4e6f6 by BellCodeEditor

save project

parent b3ec87ba
Showing with 17 additions and 4 deletions
dict= {'可口可乐':1,'农夫山贼':9000000,'草泥马':1,'辣鸡':1}
k=input('你买啥?')
if k in dict:
print('丁冬~您的'+k+'需要支付'+str(dick[k])+'元~')
else:
print('没有,滚')
\ No newline at end of file
list_hero=['173',3000,'油病',3700,'鸡',90000] #list_hero=['173',3000,'油病',3700,'鸡',90000]
dict_hero = {'得到':3000,'油病':3700,'鸡':90000} dict_hero = {'得到':3000,'油病':3700,'鸡':90000}
print(len(list_hero)) #print(len(list_hero))
print(len(dict_hero)) #print(len(dict_hero))
\ No newline at end of file print(dict_hero)
print(dict_hero['油病'])
dict_hero['鸡']=320
print(dict_hero)
\ 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