1. Learn
  2. /
  3. 课程
  4. /
  5. Python 中级:面向开发者

Connected

道练习

多行文档字符串

有时单行文档字符串就足够了,但如果函数更复杂或包含多个参数,一般更适合使用多行文档字符串。

您将通过为之前创建的 clean_text() 函数编写一段多行文档字符串来练习这一点。

说明 1 / 共 3 个

undefined XP
    1
    2
    3
  • 将以下摘要添加到文档字符串中:Clean text by swapping spaces to underscores and converting to lowercase.。