PyCharm註釋中出現中文運行報錯的解決辦法

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

 

 

 

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

方法二:更改編碼格式3d

File  -->  Settings  -->  Editor  -->  File Encodings  全改成UTF-8就能夠了code

相關文章
相關標籤/搜索