怎麼解決syntaxerror:non-utf-8 code starting with \xc4'in file c:\users\ad

1、第一種方法 首行增長,已測試可用。 # coding=gbk 程序中出現中文,運行的時候出現以下錯誤: SyntaxError: Non-UTF-8 code starting with 'xc1' in file C:...xxx.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/
相關文章
相關標籤/搜索