linux下自动重启挂掉的python脚本 在linux下可以新建一个名为run.sh的脚本: #!/bin/sh while [ 1 ]; do python program.py --params done 在命令行中这样启动: sh run.sh