编辑器
import textwrap text = 'This is a long message from Tobias that needs to be wrapped.' wrapped = textwrap.fill(text, width=30) print(wrapped)
This is a long message from
Tobias that needs to be
wrapped.