简介
在 Python 中,我们可以使用取模运算符(%
)来检查一个数是否能被另一个数整除。如果余数等于 0
,那么这个数就能被整除。在这个挑战中,你将创建一个函数来检查一个数是否能被另一个数整除。
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/BasicConceptsGroup -.-> python/booleans("Booleans")
python/BasicConceptsGroup -.-> python/comments("Comments")
python/DataStructuresGroup -.-> python/tuples("Tuples")
python/FunctionsGroup -.-> python/function_definition("Function Definition")
subgraph Lab Skills
python/booleans -.-> lab-13668{{"在 Python 中判断数字的可整除性"}}
python/comments -.-> lab-13668{{"在 Python 中判断数字的可整除性"}}
python/tuples -.-> lab-13668{{"在 Python 中判断数字的可整除性"}}
python/function_definition -.-> lab-13668{{"在 Python 中判断数字的可整除性"}}
end