|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
打开doc文件,提示以下问题
>>> e=open('E:\\123.doc', encoding = "utf-8")
>>> e
<_io.TextIOWrapper name='E:\\123.doc' mode='r' encoding='utf-8'>
>>> e.read()
Traceback (most recent call last):
File "<pyshell#96>", line 1, in <module>
e.read()
File "D:\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte |
|