Commit ba76071f by BellCodeEditor

save project

parent 06d228ae
Showing with 6 additions and 1 deletions
......@@ -9,8 +9,10 @@ power=int(input('вфыи?'))
# break
# print(list_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'])
dict_hero[name]=int(power)
dict_hero['004']=43
print(dict_hero)
dict_hero['ещь']='唐三藏'
......@@ -18,3 +20,5 @@ dict_hero['вуа']='大师兄'
print(dict_hero)
dict_hero['вуа']='齐天大圣'
print(dict_hero)
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