Run two python files at the same time

前端 未结 4 1758
遥遥无期
遥遥无期 2021-01-13 23:25

I have tried using

#!/bin/bash
python ScriptA.py &
python ScriptB.py &

to run both scripts at the same time but it always returns

4条回答
  •  隐瞒了意图╮
    2021-01-14 00:06

    You can just open both files on the python IDLE and run each o them. If you need both files to run simultaneously (the first way you have the delay of pressing F5 on each file) you can use PyCharm and download the multirun plugin.

提交回复
热议问题