爲何python文檔要前加 # coding=utf-8

由於若是不加編碼方式,在python文檔中加中文註釋的時候,會有下列報錯python File "encode.py", line 5 SyntaxError: Non-ASCII character '\xe7' in file encode.py on line 1, but no encoding declared; see //..python.../dev/peps/pep-0263/
相關文章
相關標籤/搜索