问题一:
python读取文件时报错:“UnicodeDecodeError: 'gbk' codec can't decode byte 0x8d in position 52: illegal multibyte sequence” 解决方法: 1、txt= open('read.txt','r', encoding='UTF-8') 2、txt= open('read.txt','rb')
问题一:
python读取文件时报错:“UnicodeDecodeError: 'gbk' codec can't decode byte 0x8d in position 52: illegal multibyte sequence” 解决方法: 1、txt= open('read.txt','r', encoding='UTF-8') 2、txt= open('read.txt','rb')
转载于:https://www.cnblogs.com/amberly/p/10245021.html