Download the python plug-in
##Install the Python 3 version and choose a Python interpretation Interpreter
In VS Code, select the Python 3 interpreter by opening the Command Palette (Ctrl Shift P) and start typing Python: Select the Interpreter command to search, then select the command, and when finished bottomWriting demo
Create a folder at will. In vscode, file => open the folder, and create a new file ending with .py in the folder. For example, right-click to run the python file in the terminalmsg = "hello world" print(msg)
debug configuration
Return to the hello.py file, press F9 on the print line to indicate a breakpoint, and directly press F5 to start debugging. The debugging effect is as follows: At this point, the python program can already run and debugged. Recommended related articles and tutorials:
The above is the detailed content of How vscode relates to python. For more information, please follow other related articles on the PHP Chinese website!