用时候好好的,调试的时候报错。。。。
用着好好的,怎么就报错了。调试的时候报错,运行不报错。File "D:\PyCharm 2021.3\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 303, in _on_run
r = r.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 1022-1023: unexpected end of data 把代码发全 改成这样试试:
r = r.decode('utf-8','ignore')
页:
[1]