E302 expected 2 blank lines, found 1
函数前要有两行空
E231 missing whitespace after ‘,’
, : 后面都要有空格
E225 missing whitespace around operator
= 、 ,之类的赋号周围要有空格
PEP 8: E262 inline comment should start with '# '
注释要以# 开始(#空格)
PEP 8: E261 at least two spaces before inline comment
注释前应该两个空格,所以应该是
print() # 注释
Shadows name ‘reslut’ from outer scope
外部已经定义了这个名字的变量,外部的没用了
Remove redundant parentheses
删除所在代码行最外层括号。我这次是 if 中条件不用加括号
PEP 8: W292 no newline at end of file
文件末尾回车