import subprocess p_restart=subprocess.Popen([‘/bin/sh‘,‘/etc/init.d/xxx_service‘,‘reboot‘])
原文地址:https://www.cnblogs.com/sea-stream/p/10385358.html
时间: 2024-11-06 18:13:52
import subprocess p_restart=subprocess.Popen([‘/bin/sh‘,‘/etc/init.d/xxx_service‘,‘reboot‘])
原文地址:https://www.cnblogs.com/sea-stream/p/10385358.html