Pylint throwing configparser.MissingSectionHeaderError:
Pylint throwing configparser.MissingSectionHeaderError:
我正在使用 pylint
测试 python 文件
代码如下
""" Testing the file inside the content"""
import json
file = r'test.txt'
with open(file,'r') as fr:
fd = fr.read()
print (fd)
下面是测试命令
pylint code.py
错误如下
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\Users\ayshewew\.pylintrc', line: 2
'import json\n'
我已经在 jupyter notebook 中执行了上面的代码并且工作正常
我的pylint是最新版本
尝试过
python -m pylint code.py
得到输出
工作
我正在使用 pylint
测试 python 文件代码如下
""" Testing the file inside the content"""
import json
file = r'test.txt'
with open(file,'r') as fr:
fd = fr.read()
print (fd)
下面是测试命令
pylint code.py
错误如下
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\Users\ayshewew\.pylintrc', line: 2
'import json\n'
我已经在 jupyter notebook 中执行了上面的代码并且工作正常
我的pylint是最新版本
尝试过
python -m pylint code.py
得到输出
工作