慕侠3348009
2018-06-26 19:50
usr/lib/python2.7/ConfigParser.pyc in read(self, filenames)
303 except IOError:
304 continue
--> 305 self._read(fp, filename)
306 fp.close()
307 read_ok.append(filename)
/usr/lib/python2.7/ConfigParser.pyc in _read(self, fp, fpname)
510 # no section header in the file?
511 elif cursect is None:
--> 512 raise MissingSectionHeaderError(fpname, lineno, line)
513 # an option line?
514 else:
MissingSectionHeaderError: File contains no section headers.
file: imooc.txt, line: 1
'123\xe6\x85\x95\xe8\xaf\xbe'
你这imooc.txt 不是配置文件的格式, 你这个内容貌似是:"123幕课"哦
Python文件处理
88454 学习 · 107 问题
相似问题