亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

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'


正在回答

1 回答

你這imooc.txt 不是配置文件的格式, 你這個內容貌似是:"123幕課"哦

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

cfg.read('imooc.txt')一直報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號