Article directory
Download and install vscode
2.
3.
4.
5.
Double-click to install. The installation process is very short. The main thing is to modify the location. Others can be defaulted.
vscode configure python
Note: I first used the virtual environments of pycharm and anconda, which have python compilers. If you don’t have a python compiler, please download the compiler first.
Install Chinese extension
Note: If the extension is successfully installed, you will be prompted to restart in the lower right corner. You can also choose to use the English version.
Search for: chinese and then install it.
Install python extension
Select vscodeproject folder
Create an empty folder to store files
Create py file
Two steps before running
1. Select the compiler in the lower right corner. After clicking, a selection box will pop up at the top of the page.
2. Select the terminal.
run
virtual environment
python -m venv venv