【发布时间】:2020-07-29 08:22:12
【问题描述】:
I clicked run on python file, but it keep on opening the previous html file.
我在 vs 代码中点击了从 python 文件运行,但终端没有运行(这通常发生在之前)并且 vs 代码继续打开我作为前一个文件打开的 html 文件。
【问题讨论】:
标签: python html visual-studio-code ide
I clicked run on python file, but it keep on opening the previous html file.
我在 vs 代码中点击了从 python 文件运行,但终端没有运行(这通常发生在之前)并且 vs 代码继续打开我作为前一个文件打开的 html 文件。
【问题讨论】:
标签: python html visual-studio-code ide
如果您想要一个临时解决方案,您可以将要运行的代码写入终端(如在 CMD 中)。
确保您位于正确的目录,然后键入:python name_of_code.py,它应该会运行它。
例如
C:\Users\User\Desktop\Python\My_Dicrectory> python my_code.py
【讨论】:
我找到了答案:它的 .vscode 文件夹添加到同一个文件夹中,其中包含 Json 文件。它继续覆盖文件夹中的当前文件。谢谢大家
【讨论】: