Python:variable in function(argument、function) name should be lowercase 处理方式

用pyCharm时,常会出现警告信息:

function name should be lowercase   --函数名应该是小写  字母

argument name should be lowercase --参数名应该是小写字母

variable in function should be lowercase --变量应该是小写字母

 

全是小写字母,可能与以往的习惯不大一样,将这样的警告忽略的方法如下:

File →Settings→Editor→Inspections→Python→PEP 8 naming convention violation

右下角有个"Ignored errors",增加:

N802

N803

N806

分别对应上面的三种提示。

 

posted @ 2020-11-01 23:59  然终酒肆  阅读(628)  评论(0编辑  收藏  举报