In Visual Studio Code, there are two ways to view the results of running Python code: View the results through the Output panel View the results through the integrated terminal
VS Code Run Python code and view the results in the console
In Visual Studio Code (VS Code), there are two main ways to view the results of running Python code:
Through the "Output" panel
Open the integrated terminal of VS Code through the integrated terminal
Ctrl
' (Windows) or
Cmd
' (Mac). python
command and enter your code. The results will be displayed in the terminal. Other Tips
F5
or click the debug button (looks like a running green bug) to start the debugger. print
statement to your code to print the results to the console. With the above method, you can easily view the results of Python code running in VS Code.
The above is the detailed content of How to see the results of running python code in vscode. For more information, please follow other related articles on the PHP Chinese website!