Python中文件無法顯示
>>> f = open('E:\\27text.txt')>>> f.read(56)Traceback (most recent call last): File "
", line 1, in
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盤裡,不知道為什麼顯示不出來