且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

运行多个Python脚本

更新时间:1970-01-01 07:55:36

您还可以打开几个命令提示符窗口来一次运行多个Python程序-只需在其中每个程序中运行一个即可.

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

在每个命令提示符窗口中,转到正确的目录(例如C:/Python27),然后在一个命令提示符窗口中键入"python YourCodeNo 1 .py",即"python YourCodeNo 2 .py". .

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. .

我目前正在以这种方式一次运行3个代码,而不会降低任何代码的速度.

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