问题遇到的现象和发生背景
Python中文件无法显示
运行结果及报错内容
>>> f = open('E:\\27text.txt')
>>> f.read(56)
Traceback (most recent call last):
File "<pyshell#26>", line 1, in <module>
f.read(56)
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 44: illegal multibyte sequence
>>> f.read(5)
''
>>> f.read(10)
''
>>> f.read()
''
我的解答思路和尝试过的方法
我直接迷惑,我特意把文件放到E盘里,不知道为什么显示不出来