UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd3 in position 0: invalid continuation byte解决

insert image description here
Encountered an error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 0: invalid continuation byte

I saw the method of copying and pasting by others on the Internet: add "# - - coding: utf-8 - -" at the beginning of the py file , it doesn't work at all!

insert image description here
Look at the source of the error, it is line 176
, here is the content of the printed log information, but this log information is useless, just comment it out.
insert image description here

Successfully run!

Guess you like

Origin blog.csdn.net/qq_52381360/article/details/127938548