小编Sha*_*kes的帖子

Pylint无效的函数名称

我用Python 3.6.2运行Pylint 1.7.2.Pylint显示以下错误:

Invalid function name "create_maximization_option_dataframe" (invalid-name)
Run Code Online (Sandbox Code Playgroud)

我在我的代码中定义了一个类似的函数:

def create_maximization_option_dataframe(file_name):
Run Code Online (Sandbox Code Playgroud)

PEP8风格指南基本上只是说:

函数名称应为小写,并根据需要用下划线分隔,以提高可读性.

据我所知,我正在遵循函数名称的所有格式规则.Pylint是否有一些我不知道的内置最大函数名称长度规则?我可以很容易地忽略Pylint错误,但我想先了解为什么会这样.

python pylint

8
推荐指数
2
解决办法
5133
查看次数

标签 统计

pylint ×1

python ×1