在配置文件 setting.json 中加入如下代码即可
"code-runner.executorMap": { "python": "set PYTHONIOENCODING=utf8 && python -u", }