在VS代码中添加Python终端

发布于 2025-01-28 17:20:25 字数 263 浏览 2 评论 0原文

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

我想问我如何使Python终端在这里可见。谢谢。

I am trying to run Python from VS Code. I have already activated python through the terminal. However, in the terminal selector in the lower right of the screen, I cannot find Python terminal option there:
enter image description here

I wish to ask how could I make Python terminal visible here so that the next time I wish to switch terminal to Python, I do not have to load a .py file but could just selecting Python terminal directly. Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

星軌x 2025-02-04 17:20:25

Python终端并不是真正的事情。如果要运行.py文件,请$ Python [filename] .py$ python3 [filename] .py。如果您只想运行命令,请通过执行$ Python$ Python3打开Python shell

Python terminals aren't really a thing. If you want to run a .py file, do $ python [filename].py or $ python3 [filename].py. If you want to just run commands, open a Python shell by doing $ python or $ python3

等待圉鍢 2025-02-04 17:20:25

打开一个新的终端并键入“ Python -u”。
点击Enter键。
Bhoom!在VS代码中使用Python Shell,您很不错。

Open a new terminal and type "python -u".
Hit the enter key.
Bhoom! You're good to use Python shell in VS Code.

Python Shell in VS Code

夏见 2025-02-04 17:20:25

没有Python终端。如果您询问加载Python shell

There is no Python terminal. If you are asking about loading Python shell you just have to type python into your terminal to load the Python shell

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文