简体   繁体   English

我如何在没有终端命令的情况下运行 vscode 运行 python

[英]how can i vscode run python without terminal command

Is there a way to run Python in Vscode terminal without command?有没有办法在没有命令的情况下在 Vscode 终端中运行 Python ?

current result当前结果当前结果

want result想要结果想要结果

I've also tried changing the run console from terminal to debug console in Launch.json, but it's not a good way because it's not set globally and don't get key input.我还尝试在 Launch.json 中将运行控制台从终端更改为调试控制台,但这不是一个好方法,因为它没有全局设置并且没有获得键输入。 Is there a good way?有什么好办法吗?

And apart from this question, is there any way to get the finished time print like when running Python on a sublime?除了这个问题之外,还有什么方法可以像在崇高上运行 Python 一样获得完成的时间打印? I think it's too inefficient to take a final time for each python code.我认为为每个 python 代码花费最后时间效率太低了。

在此处输入图像描述

Right click "Run main.py"右键单击“运行 main.py”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不输出到终端的情况下运行os命令? - How can I run a os command without getting output to terminal? 如何使用 Python 异步运行终端命令? - How can I run a terminal command asynchronously using Python? 如何在VSCode Python终端中循环到上一个命令 - How do I cycle to previous command in VSCode Python Terminal 如何在终端中创建“python”命令,运行python3而不是python2? - How can I make the “python” command in terminal, run python3 instead of python2? 在没有python命令的情况下在终端中运行python脚本 - run a python script in terminal without the python command 如何在 VScode for Python 中将 PowerShell 终端更改为简单的终端? - How can I change a PowerShell terminal to a simple one in VScode for Python? 如何在 Mac 上的终端中运行 python? - How can I run python in terminal on a mac? 我无法使用 VSCode 扩展运行 python 模块,但我可以使用终端 - I can't run python modules using VSCode extension, but I can using terminal 在python上运行终端命令而不显示结果 - Run a terminal command at python without show the result 当我想通过终端运行特定命令时,如何使用VScode的调试器? - How do I use VScode's debugger when I want to run specific command through my terminal?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM