Python with Visual Studio Code

Install python

Python installation tutorial can be seen in the rookie tutorial: python installation tutorial (all rookie tutorial)

VS Code download

Download address: VS Code official website download address
VS Code interface Chinese:

  1. Download and install the Chinese package
    Insert picture description here
  2. ctrl+shift+p
  3. Enter configure display language in the search box, select zh-cn
    Insert picture description here
    Insert picture description here

Environment setup

After downloading and installing python and VS Code, download the corresponding python extension in VS Code and install it:
Insert picture description here
Create a new python file and save it in the project folder created by yourself. For example, create a HelloPython.py file and save it in the py folder. VS Code opens the folder.
Insert picture description here
In the status bar at the bottom left, you can choose to use different versions of the installed python interpreter to
Insert picture description here
create the launch.json file:
Insert picture description here
Debug:
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_36439722/article/details/105794799
Recommended