Commit 1175ef72 by BellCodeEditor

auto save

parent d50f4d03
Showing with 26 additions and 0 deletions
dict_hero={'a:10','b:40','c:70','d:80','e:81'} dict_hero={'a:10','b:40','c:70','d:80','e:81'}
print(dict_hero) print(dict_hero)
#dict_hero['c']=35
#print(dict_hero)
#dict_hero['f']=100
#print(dict_hero)
if d in dict_hero:
print(dict_hero['d'])
\ No newline at end of file
dict_hero={'a':10,'b':40,'c':70,'d':80,'e':81}
print(dict_hero)
dict_hero['c']=35
print(dict_hero)
dict_hero['f']=100
print(dict_hero)
dict_hero['g']=10
dict_hero['h']=10
dict_hero['i']=43
print(dict_hero)
k=input('请输入')
if k in dict_hero:
print(k+str(dict_hero[k])+'元')
else:
print('没有商品')
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