[英]Run python file when PyCharm opens
I am trying to run two Python Scripts when PyCharm Professional Opens.当 PyCharm Professional 打开时,我正在尝试运行两个 Python 脚本。 Ideally, the program would not run in the PyCharm console.理想情况下,该程序不会在 PyCharm 控制台中运行。 Any help would be much appreciated.任何帮助将非常感激。
Running two python files on the PyCharm Professional easy.在 PyCharm Professional 上轻松运行两个 python 文件。
For instance:例如:
This is my first main.py
file:这是我的第一个main.py
文件:
Then I right-click on the PyCharm Professional, open the 2nd project然后我右击PyCharm Professional,打开第二个项目
PyCharm asks me: PyCharm 问我:
Click on the New Window button.单击新建 Window 按钮。 Now you have two windows next to each other:现在您有两个相邻的 windows:
You can either run or debug both of them at the same time.您可以同时运行或调试它们。
From above you can see, PyCharm executes both files at the same time.从上面可以看到,PyCharm 同时执行了两个文件。
You can also do this in the same project or you can run or debug multiple projects at the same time您也可以在同一个项目中执行此操作,也可以同时运行或调试多个项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.