通过shell脚本一起运行5个python程序

2024-10-03 11:20:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我有5个python程序,我想同时运行它们

假设我有这些程序

python1.py
python2.py
python3.py
python4.py
python5.py

shell脚本如何将它们一起运行?如果我像这样发出5个命令

all.sh
 python python1.py
 python python2.py
 python python3.py
 python python4.py
 python python5.py

他们会一起工作吗

有没有更好的选择


Tags: py命令程序脚本shallshellpython3