Solution Chinese operation being given PyCharm comments appear

SyntaxError: Non-UTF-8 code starting with '.....

 

 

 

Method One: In the first line of the file plus # - * - coding: utf-8 - * -

Method two: Change the code format

File -> Settings -> Editor -> File Encodings full UTF-8 instead it

 

 

Guess you like

Origin www.cnblogs.com/jiyu-hlzy/p/11788704.html