VS Code in the menu bar and then click Open File-Preferences-Settings, search box "python.formatting.provider",
Then select any autopep8, yapf, black the three, the drop-down menu. Recommended autopep8
Then Ctrl + Alt + F will be prompted to install, select select the manner in which is mounted above vs code.
VS Code in the menu bar and then click Open File-Preferences-Settings,
1, the search box search "python.linting.pep8Enabled", check
2, the search box "python.linting.pylintEnabled", check (recommended)
3, the search box, search for "python.linting.flake8Enabled", check