代码编辑区自动换行 对所有文件有效: (1) File-> Settings-> Editor-> General; (2) 找到Soft Wraps,勾选Soft-wrap files; (3) 在输入框中添加;*.py,如下图所示;