如何从用户中获取输入中的输入'部分而不是终端'视觉工作室代码中的部分
您可以在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您下载了名为“代码跑步者”的扩展程序,则将有三个选项可以选择运行代码。
您不能在其中输入任何内容。这是输出的设置。我们无法修改此问题。
如果您选择秒“运行python文件” ,则结果将在终端显示。您可以使用CMD或任何其他外壳等端子。
第三是用于调试,它与此问题无关。
If you download the extension named "code runner", there will be three options for you to choose to run the code.
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.