如何从用户中获取输入中的输入'部分而不是终端'视觉工作室代码中的部分

发布于 2025-01-25 19:14:46 字数 239 浏览 2 评论 0原文

您可以在Visual Studio Code中的Outpation部分中的用户而不是终端部分中获取输入吗?

我刚刚安装了Visual Studio代码,当我尝试从用户那里获得输入时,输出终端中的光标甚至都不会闪烁以允许输入输入。

除非我转到终端节,否则我无法输入任何输入。问题是什么?

我正在使用python

Can you get input from a user in the OUTPUT section instead of the TERMINAL section in Visual Studio Code?

I just installed Visual Studio Code and when I try to get input from the user, the cursor in the output terminal doesn't even blink to allow input to be entered.

Unless I go to the TERMINAL section I can't enter any input. What is the problem?

I am using python.

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

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

发布评论

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

评论(1

滴情不沾 2025-02-01 19:14:46

如果您下载了名为“代码跑步者”的扩展程序,则将有三个选项可以选择运行代码。

​您不能在其中输入任何内容。这是输出的设置。我们无法修改此问题。

如果您选择秒“运行python文件” ,则结果将在终端显示。您可以使用CMD或任何其他外壳等端子。

第三是用于调试,它与此问题无关。

If you download the extension named "code runner", there will be three options for you to choose to run the code.

enter image description here

enter image description here

The result will shows in the OUTPUT if you choose the first "run code". You cannot type anything in it. This is the setting of output. We cannot modify this.

The result will shows in terminal if you choose the seconde "run python file". You can use the terminal like cmd or any other shells.

The third is for debugging, it has nothing to do with this problem.

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