VScode输出显示路径,然后显示cod

2024-04-26 10:46:26 发布

您现在位置:Python中文网/ 问答频道 /正文

刚接触VScode,虽然我喜欢它,但我觉得我可能设置了错误的东西,或者它比Atom或sublime3慢。当运行简单的代码时,这个简单的“helloworld”显示大约需要5秒钟。你知道吗

为什么它会显示所有的路径废话,这就是为什么它看到这么慢?有什么办法来调整这个吗?你知道吗

谢谢!你知道吗

Visual studio输出:

user_dev@DESKTOP-131452 MINGW64 ~/Documents/VSCODE/Python/BeautifulSoup
$ cd "C:\Users\user_dev\Documents\VSCODE\Python\BeautifulSoup" ; env "PYTHONIOENCODING=UTF-8" "PYTHONUNBUFFERED=1" C:/Python3/python.exe "C:\Users\user_dev\.
vscode\extensions\ms-python.python-2018.3.1\pythonFiles\PythonTools\visualstudio_py_launcher_nodebug.py" "C:\Users\user_dev\Documents\VSCODE\Python\BeautifulSou
p" 55240 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput "c:\Users\user_dev\Documents\VSCODE\Python\BeautifulSoup\Training\example.py"
Hello World

在Atom和它炽热的Atom输出中尝试了同样的事情:

Hello World
[Finished in 0.662s]

更新:

运行上面的代码以获取输出:

print("Hello World!")

Python版本:

$ python --version
Python 3.6.4

Tags: 代码pydevhelloworld错误vscodeusers