Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请让我知道是否有一种方法可以在 Linux 上批量运行多个 python 脚本,就像可以在 Windows 上使用 .bat 文件批量运行多个 python 脚本的方式一样?谢谢。
创建脚本...
#!/bin/sh # This file is called ~/script.sh python script1.py python script2.py
使脚本可执行...
chmod +x ~/script.sh
运行脚本...
~/script.sh