在 VS Code 中添加 Python 终端

Add Python terminal in VS Code

我正在尝试从 VS Code 运行 Python。我已经通过终端激活了 python。但是,在屏幕右下角的终端选择器中,我找不到 Python 终端选项:

我想问一下如何让 Python 终端在此处可见,以便下次我希望将终端切换到 Python 时,我不必加载 .py 文件但可以直接选择 Python 终端即可。谢谢。

没有Python终端。如果您询问有关加载 Python shell 的问题,您只需在终端中输入 python 即可加载 Python shell

Python 终端并不是什么东西。如果你想 运行 .py 文件,请执行 $ python [filename].py$ python3 [filename].py。如果您只想 运行 命令,请通过执行 $ python$ python3

打开 Python shell