1、no newline at end of file

解决:文件尾部没有新起一行,光标移到最后回车即可,而且不能有tab缩进

 

2、continuation line over-indented for visual indent

解决:括号内的参数很多的时候, 为了满足每一行的字符不超过79个字符, 需要将参数换行编写, 这个时候换行的参数应该与上一行的括号对齐。

  req = requests.request("POST", IAMURL, data=__data,
                           headers=__HEADERS, verify=False)

 

3、continuation line missing indentation or outdented

解决:连续行缺少缩进,连续行使用tab缩进

 

4、trailing whitespace

解决:句子末尾多空格或者tab,删除即可

 

5、expected 2 blank lines, found 0

解决:不同的两个函数定时时至少需要两个空行

 

6、Unreachable code

 

7、continuation line under-indented for visual indent
解决:括号内容的内容要对齐

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2021-10-20
  • 2021-09-01
  • 2022-03-07
  • 2022-12-23
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案