cfg.read('imooc.txt')一直报错
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'