UnicodeEncodeError: 'gbk' codec can't encode character '\ufffd' in position 2494: illegal multibyte sequence
写入文件报错UnicodeEncodeError: 'gbk' codec can't encode character '\ufffd' in position 2494: illegal multibyte sequence 解决方法
with open('./abc.html', 'w', encoding='utf-8') as fp: fp.write(respone)
加入encoding='utf-8' 即可