简介
在 Python 中,字典和列表可以包含嵌套值,这些值可以使用选择器列表来访问。在这个挑战中,你将创建一个函数,该函数从字典或列表中检索由给定选择器列表指示的嵌套键的值。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("Python")) -.-> python/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/DataStructuresGroup(["Data Structures"])
python(("Python")) -.-> python/FunctionsGroup(["Functions"])
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
python/BasicConceptsGroup -.-> python/comments("Comments")
python/DataStructuresGroup -.-> python/lists("Lists")
python/DataStructuresGroup -.-> python/tuples("Tuples")
python/DataStructuresGroup -.-> python/dictionaries("Dictionaries")
python/FunctionsGroup -.-> python/function_definition("Function Definition")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
python/ModulesandPackagesGroup -.-> python/using_packages("Using Packages")
python/ModulesandPackagesGroup -.-> python/standard_libraries("Common Standard Libraries")
subgraph Lab Skills
python/comments -.-> lab-13648{{"获取嵌套值"}}
python/lists -.-> lab-13648{{"获取嵌套值"}}
python/tuples -.-> lab-13648{{"获取嵌套值"}}
python/dictionaries -.-> lab-13648{{"获取嵌套值"}}
python/function_definition -.-> lab-13648{{"获取嵌套值"}}
python/importing_modules -.-> lab-13648{{"获取嵌套值"}}
python/using_packages -.-> lab-13648{{"获取嵌套值"}}
python/standard_libraries -.-> lab-13648{{"获取嵌套值"}}
end