Til*_*und 5 python gedit pep8 pyflakes python-3.5
我在python 3.5.1编写,我是一个编程新手.
我根据python样式指南使用带有pep8和pyflakes插件的gedit来显示样式错误.我不知道是否要遵循风格推荐信.
然而,我有三个反复出现的风格缺陷E501: line too long (80 > 79 characters),E502: the backslash is redundant between brackets并且E128/E127/...: continuation line under-indented for visual indent.截图如下.
我的两个问题是:
E501和随后的风格的错误E502和E127/128?"为了避免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已在括号内,因此反斜杠是多余的.你试过消除它吗?