在Python 中,可以使用字符串的 textwrap 模块来实现自动换行。 textwrap 模块提供了多个函数用于自动换行和填充文本,包括 fill 、 wrap 、 dedent 等。
確定! 回上一頁