且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

崩溃后如何重新运行Linux?

更新时间:2023-02-02 13:16:29

1种方式的bash脚本

1 way bash script

while true;
do
    python index.py 
done

2种方式开始python脚本

2 way start python script

import os
while True:
    os.system("python index.py")

从外部python脚本 import index.py $ c $的3种方式c>,然后启动外部脚本。

3 way from external python script import index.py and then start external script.