PyCharm注释中出现中文运行报错的解决办法,应用停止运行怎么解决


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

 

 

 

方法一:在文件首行加上    # -*- coding:utf-8 -*-

方法二:更改编码格式

File  -->  Settings  -->  Editor  -->  File Encodings  全改为UTF-8就可以了

 

 

相关内容

    暂无相关文章

评论关闭