UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 4: illega

急而少谋,必败!


 

疑惑

python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence


解惑

fd = open('D:\\img\\car.txt', 'rb')

 

你可能感兴趣的:(python编程专栏)