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"
				}
			}
		}
	]
}

相关推荐