某次编码,debug的时候突然突然突然给我报这个错:

Traceback (most recent call last):   File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\Packages\ptvsd\_vendored\pydevd\_pydevd_bundle\pydevd_comm.py", line 284, in _on_run     r = r.decode('utf-8')

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 1023: unexpected end of data

里面的分析不想说了,反正傻屌,然后我给了一个傻屌解决方法:

把代码文件的全部内容用notepad++转化为ASCII编码.

傻屌的错误.

相关文章:

  • 2022-01-11
  • 2021-05-26
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2021-11-20
  • 2022-03-07
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案