Vs code 下设置python tasks.json
Posted D&J
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Vs code 下设置python tasks.json相关的知识,希望对你有一定的参考价值。
{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "python", "type": "shell", "command": "python", "args": [ "${file}" ], "presentation": { "reveal": "always", "panel": "shared" }, "group": { "kind": "build", "isDefault": true }, "options": { "env": { "PYTHONIOENCODING": "UTF-8" } } } ] }
以上是关于Vs code 下设置python tasks.json的主要内容,如果未能解决你的问题,请参考以下文章
vs code开发python时找不到当前目录下的文件UnicodeDecodeError: 'gbk'