问题提出
Traceback (most recent call last):
File “/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py”, line 306, in _on_run
r = r.decode(‘utf-8’)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
解决方案
定位到"/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py,并编辑至306行将r = r.decode('utf-8')
修改为 r = r.decode('utf-8', errors='ignore')
即可解决。如下图所示