Geany編譯python時運行彈出SyntaxError: (unicode error) 'utf-8' codec can't提升

1:在Geany中編譯python3時,如果有添加中文註釋可能會出現SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc1 in position 0: invalid start byte,如下圖: 2:python中默認的編碼格式是 utf-8,因此需要將編輯的文件格式進行轉換爲utf-8,只需對Geany軟件進行如下
相關文章
相關標籤/搜索