ctrl + shift + P,打开Open Settings(json)设置如下: //python code runner设置 "code-runner.executorMap":{ "python":"set PYTHONIOENCODING=utf8 && python" }