打开setting.json文件
Ctel+Shift+P 然后又输入 setting.json
setting.json里追加
{
"python.linting.flake8Enabled": true,
"python.formatting.provider": "yapf",
"python.linting.flake8Args": ["--max-line-length=248"],
"python.linting.pylintEnabled": false
}