python在打开文件时报错
UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 8: illegal multibyte sequence
解决办法:
以utf-8的格式打开:
file=open('fileURL',encoding='utf-8')
python在打开文件时报错
UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 8: illegal multibyte sequence
解决办法:
以utf-8的格式打开:
file=open('fileURL',encoding='utf-8')