Commit fa033469 by BellCodeEditor

save project

parent 71f29b50
Showing with 9 additions and 3 deletions
...@@ -4,6 +4,12 @@ dict_hero['c']=35 ...@@ -4,6 +4,12 @@ dict_hero['c']=35
print(dict_hero) print(dict_hero)
dict_hero['f']=100 dict_hero['f']=100
print(dict_hero) print(dict_hero)
if 'd' in dict_hero: dict_hero['g']=5
print(dict_hero['d']) dict_hero['h']=41
dict_hero['i']=45
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