标签:init reboot class style splay 进程 启动 div pytho
import subprocess p_restart=subprocess.Popen([‘/bin/sh‘,‘/etc/init.d/xxx_service‘,‘reboot‘])
python 启动新进程执行脚本
原文地址:https://www.cnblogs.com/sea-stream/p/10385358.html