简介
在 Python 中,我们可以使用内置函数将字符串中每个单词的首字母大写。在这个挑战中,你将被要求编写一个函数,该函数接受一个字符串作为参数,并返回一个新的字符串,其中每个单词的首字母都大写。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("Python")) -.-> python/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/FunctionsGroup(["Functions"])
python/BasicConceptsGroup -.-> python/comments("Comments")
python/FunctionsGroup -.-> python/function_definition("Function Definition")
subgraph Lab Skills
python/comments -.-> lab-13595{{"将单词首字母大写"}}
python/function_definition -.-> lab-13595{{"将单词首字母大写"}}
end