一 错误信息
1. expected 2 blank lines,found 0这句话的意思是“有两个空白行,但是没有发现。”在声明函数的那一行的上方必须有两行的空行,否则便出现这个情况。
2.missing whitespace after ',' :意思是“,”后缺少空格,因此在定义参数时要在逗号后面假空格
3.missing whitespace after ':' :在定义参数时要在冒号后面假空格
4.lock comment should start with '# ' :只需要将注释与#之间加一个空格即可
5.missing whitespace around operator :意思是符合周边缺少空格 需要在错误位置后加空格
whitespace before '(' “(”之前的空格,删除空格
6.expected 1 blank line, found 0 在声明函数的那一行的上方必须有一行的空行
7.indentation is not a multiple of 4 :缩进不是4的倍数
8.over-indented :过度缩进,检查缩进
9.expected 2 blank lines after class or function definition, found 1 :在类或函数定义后预期有 2 个空行,
10.block comment should start with '# ' :块注释应以“#”开头,在#后加空格
11.multiple spaces after keyword :关键字后有多个空格,检查关键字的空格
12.'certifi.contents' imported but unused :“认证内容”已导入但未使用,可以注释或删除
13.ambiguous variable :变量名称不明确,可能是与之前的变量有重名的地方,所以需要重新命名
14.no newline at end of file 文件末尾没有换行符,在最后一行加一个空行
二 警告信息
1.trailing whitespace 尾随空格,删除空格就可以了
2.blank line contains whitespace 空行包含空格,删除空格
2.no newline at end of file 文件末尾没有换行符