Running multiple Python scripts

后端 未结 3 877
梦毁少年i
梦毁少年i 2021-01-22 17:20

I would like to create a simple Python program that will concurrently execute 2 independent scripts. For now, the two scripts just print a sequence of numbers but my intention i

3条回答
  •  梦毁少年i
    2021-01-22 17:37

    You can also just open several Command Prompt windows to run several Python programs at once - just run one in each of them:

    In each Command Prompt window, go to the correct directory (such as C:/Python27) and then type 'python YourCodeNo1.py' in one Command Prompt window, 'python YourCodeNo2.py' in the next one ect. .

    I'm currently running 3 codes at one time in this way, without slowing any of them down.

提交回复
热议问题