Commit ba76071f by BellCodeEditor

save project

parent 06d228ae
Showing with 7 additions and 3 deletions
...@@ -9,12 +9,16 @@ power=int(input('вфыи?')) ...@@ -9,12 +9,16 @@ power=int(input('вфыи?'))
# break # break
# print(list_hero) # print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'001':16,'002':21,'003':29,'004':45,'005':50}
dict_hero={'001':16,'002':21,'003':29,'004':45,'005':50,'006':41,'007':29}
print(dict_hero['001']) print(dict_hero['001'])
dict_hero[name]=int(power)
dict_hero['004']=43 dict_hero['004']=43
print(dict_hero) print(dict_hero)
dict_hero['ещь']='唐三藏' dict_hero['ещь']='唐三藏'
dict_hero['вуа']='大师兄' dict_hero['вуа']='大师兄'
print(dict_hero) print(dict_hero)
dict_hero['вуа']='齐天大圣' dict_hero['вуа']='齐天大圣'
print(dict_hero) print(dict_hero)
\ No newline at end of file if 'ещь'in dict_hero:
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