1 vsCode下载
vcCode官网地址:https://code.visualstudio.com/
2 安装CodeRunner
通过Ctrl + Shift + P 找到 settings
- 找到code-runner.executorMap,在 settings.json 中加入
"code-runner.executorMap": { ..... "python": "set PYTHONIOENCODING=utf8 && python -u", ..... }
- 效果如下
vcCode官网地址:https://code.visualstudio.com/
通过Ctrl + Shift + P 找到 settings
"code-runner.executorMap": {
.....
"python": "set PYTHONIOENCODING=utf8 && python -u",
.....
}