Commit 3691d1cf by BellCodeEditor

save project

parent ea014343
Showing with 8 additions and 3 deletions
...@@ -7,9 +7,13 @@ ...@@ -7,9 +7,13 @@
#list_hero.insert(i-1,name) #list_hero.insert(i-1,name)
#list_hero.insert(i,power) #list_hero.insert(i,power)
#break #break
print(list_hero) #print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'小黑子':4,'ikun':3,'香贝旺堡':15,'没家饺':10} #dict_hero={'小黑子':4,'ikun':3,'香贝旺堡':15,'没家饺':10}
print(dict_hero['小黑子']) #print(dict_hero['小黑子'])
#dict_hero['ikun']=20 #dict_hero['ikun']=20
#print(dict_hero) #print(dict_hero)
dict = {}
dict['A']='1'
print(dict)
print(dict['A'])
\ 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