Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson8-2

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 3691d1cf authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent ea014343
Hide whitespace changes
Inline Side-by-side
Showing with 8 additions and 3 deletions
  • diy1.py
diy1.py
View file @ 3691d1cf
...@@ -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
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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