写成类以后报了下面的错,不知道怎么解决了
来源:2-20 重构封装读取配置文件方法
慕婉清5418690
2018-11-23
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py”, line 1080, in _read raise MissingSectionHeaderError(fpname, lineno, line) configparser.MissingSectionHeaderError: File contains no section headers. file: ‘/Users/liucuncai/PycharmProjects/untitled/Users/liucuncai/PycharmProjects/test/config/read_ini.py’, line: 2 ‘import configparser\n写成类就报这个错了’
写回答
1回答
-
Mushishi
2018-11-23
代码发一下。File contains no section headers 没有节点信息
012018-11-24
相似问题