python中 f.read()总是报错
f=open('E:\\普通文本.txt')>>> f
<_io.TextIOWrapper name='E:\\普通文本.txt' mode='r' encoding='cp936'>
>>> f.read()
Traceback (most recent call last):
File "<pyshell#13>", line 1, in <module>
f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 10: illegal multibyte sequence
这是啥意思?看小甲鱼视频里面没有这个错误呀{:10_266:} f = open("E:\\普通文本.txt", encoding="UTF-8") 永恒的蓝色梦想 发表于 2020-7-23 16:42
谢谢大哥{:5_109:}
页:
[1]