简体   繁体   中英

Run python file when PyCharm opens

I am trying to run two Python Scripts when PyCharm Professional Opens. Ideally, the program would not run in the PyCharm console. Any help would be much appreciated.

Running two python files on the PyCharm Professional easy.

For instance:

This is my first main.py file:

在此处输入图像描述

Then I right-click on the PyCharm Professional, open the 2nd project

在此处输入图像描述

PyCharm asks me:

在此处输入图像描述

Click on the New Window button. Now you have two windows next to each other:

在此处输入图像描述

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.

You can also do this in the same project or you can run or debug multiple projects at the same time

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM