Sublime Text: [Decode error - output not utf-8]

Sublime Text裏的腳本Ctrl+B,打印中文,執行完報錯:[Decode error - output not utf-8] 解決方案: 輸入下邊3行代碼: import sys  import io sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8' ) 重新執行原有腳本即可。
相關文章
相關標籤/搜索