报错信息
Traceback (most recent call last): File
“D:\APP_INSTALL\pycharm\PyCharm Community Edition
2021.2\plugins\python-ce\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
解决
找到报错那行,改为如下: