天天看點

VS Code中使用Code Runner運作Python代碼時中文亂碼問題解決

在配置檔案 setting.json 中加入如下代碼即可

"code-runner.executorMap": {
        "python": "set PYTHONIOENCODING=utf8 && python -u",
}