介绍:需要美观打印时,可以使用textwrap模块来格式化要输出的文本,这个模块允许通过编程提高类似段落自动换行或填充特性等功能. 1 创建实例数据 sample_text = ''' I’m very happy and I like to make friends with others. I also like singing but traveling is my favorite, I have been to many interesting places in China but…