textwrap
textwrap — Text wrapping and filling
New in version 2.3.
Source code: Lib/textwrap.py
The textwrap
module provides two convenience functions, wrap()
and fill()
, as well as TextWrapper
, the class that does all the work, and a utility function 登录查看完整内容