在VS代码中添加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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Python终端并不是真正的事情。如果要运行.py文件,请
$ Python [filename] .py
或$ python3 [filename] .py
。如果您只想运行命令,请通过执行$ Python
或$ Python3
打开Python shellPython 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
打开一个新的终端并键入“ 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终端。如果您询问加载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