我如何关注换行符关于python PEP8,它有多重要?

Til*_*und 5 python gedit pep8 pyflakes python-3.5

我在python 3.5.1编写,我是一个编程新手.

我根据python样式指南使用带有pep8pyflakes插件的gedit来显示样式错误.我不知道是否要遵循风格推荐信.

然而,我有三个反复出现的风格缺陷E501: line too long (80 > 79 characters),E502: the backslash is redundant between brackets并且E128/E127/...: continuation line under-indented for visual indent.截图如下.

我的两个问题是:

  1. 我怎样才能充分让Python中的换行,以避免E501和随后的风格的错误E502E127/128
  2. 遵循样式指南pep8到字母是否有帮助,特别是考虑到出版物?高级python程序员说什么?

E501: 在此输入图像描述

E502: 在此输入图像描述

E127/128 ...: 在此输入图像描述

msw*_*msw 8

"为了避免E501以及随后的样式错误E502和E127/128,我如何才能在python中进行换行?"

progress = Utils.ProgressMeter('Source strings separated by white '
    'space are automatically concatenated by the '
    'interpreter and parenthesis are the natural syntax '
    'for line continuation. Remember to use trailing '
    'spaces.')
Run Code Online (Sandbox Code Playgroud)

由于错误E502已在括号内,因此反斜杠是多余的.你试过消除它吗?