简介
回文是一个单词、短语、数字或其他字符序列,从前往后读和从后往前读都一样。例如,“racecar”是一个回文,因为当你颠倒这个单词时,它仍然拼写为“racecar”。在这个挑战中,你将编写一个函数来检查给定的字符串是否为回文。
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/booleans("Booleans")
python/BasicConceptsGroup -.-> python/comments("Comments")
python/DataStructuresGroup -.-> python/lists("Lists")
python/DataStructuresGroup -.-> python/tuples("Tuples")
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/booleans -.-> lab-13704{{"Python 中的回文检测"}}
python/comments -.-> lab-13704{{"Python 中的回文检测"}}
python/lists -.-> lab-13704{{"Python 中的回文检测"}}
python/tuples -.-> lab-13704{{"Python 中的回文检测"}}
python/function_definition -.-> lab-13704{{"Python 中的回文检测"}}
python/importing_modules -.-> lab-13704{{"Python 中的回文检测"}}
python/using_packages -.-> lab-13704{{"Python 中的回文检测"}}
python/standard_libraries -.-> lab-13704{{"Python 中的回文检测"}}
end