简体   繁体   中英

Why does vscode not show the output of my code in the output section?

I have already installed the code runner and Python extension for vscode. I also have installed Python 3.7 on my computer. It runs the code, but all it outputs is just this:

IMG

How can I fix this?

The print statement is going to print to terminal, I would change tabs from Output -> Terminal.

I have been using VS Code for Python development for the last month and really have not used OUTPUT.

A tool that I really LOVE is their Jupyter notebook support. With a comment of '#%%' you can create a cell to run that outputs similar to Jupyter notebook. Make sure you download the Python extension from Microsoft.

Example:

#%% 
print('hello, world!')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM