简介
在这个挑战中,你将编写一个 Python 函数,该函数根据给定过滤函数的结果将列表拆分为两组。这是编程中的一项常见任务,尤其是在处理大型数据集时。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("Python")) -.-> python/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/ControlFlowGroup(["Control Flow"])
python(("Python")) -.-> python/DataStructuresGroup(["Data Structures"])
python(("Python")) -.-> python/FunctionsGroup(["Functions"])
python/BasicConceptsGroup -.-> python/comments("Comments")
python/ControlFlowGroup -.-> python/conditional_statements("Conditional Statements")
python/ControlFlowGroup -.-> python/for_loops("For Loops")
python/ControlFlowGroup -.-> python/list_comprehensions("List Comprehensions")
python/DataStructuresGroup -.-> python/lists("Lists")
python/DataStructuresGroup -.-> python/tuples("Tuples")
python/FunctionsGroup -.-> python/function_definition("Function Definition")
python/FunctionsGroup -.-> python/lambda_functions("Lambda Functions")
subgraph Lab Skills
python/comments -.-> lab-13590{{"根据函数对列表进行二分"}}
python/conditional_statements -.-> lab-13590{{"根据函数对列表进行二分"}}
python/for_loops -.-> lab-13590{{"根据函数对列表进行二分"}}
python/list_comprehensions -.-> lab-13590{{"根据函数对列表进行二分"}}
python/lists -.-> lab-13590{{"根据函数对列表进行二分"}}
python/tuples -.-> lab-13590{{"根据函数对列表进行二分"}}
python/function_definition -.-> lab-13590{{"根据函数对列表进行二分"}}
python/lambda_functions -.-> lab-13590{{"根据函数对列表进行二分"}}
end