this inspection highlights reundant parentheses in statement

字面翻译:多了个括号,单个参数使用 %(param) 会提示,可以使用 % param 或者 %(param,)

 

spellchecker inspection helps locate typos and misspelling in your code

typo:这个就有点蛋疼,python自动验证拼写错误,变量初始化的时候如果有拼音...

嗯?python需要识别一波拼音吗?

 

local variable 'xxx' value is not used

字面翻译:变量'xxx' 未被使用,无用变量

 

 

PE8:

indentation contains mixed spaces and tabs

缩进中 tab 和 space 混用了,官方标准一个缩进4为4个空格

这边有点迷,检查了确认都是空格没有 tab,还是出现这个警告,暂时记录

 

line too long (xxx>120 characters)

单行长度超过120会出现,拼接sql非常容易出现这种问题,可以使用 \ 换行

 

missing whitespace after ','

多个参数之后需要加空格,便于后期维护时查看代码。 %(param1, param2, param3)

 

expected 2 blank lines, found 1 

函数上方需要保留2行空行

posted on 2018-12-05 17:12  ZuoAn斜阳  阅读(148)  评论(0)    收藏  举报