我必須執(zhí)行一個經常在 while 循環(huán)中的 python 腳本,這是 script2while True:#do something time.sleep(30)現在我有 script1 來完成所有的計算,然后我需要執(zhí)行 script2。我試過 execfile 但它沒有用,我遇到了很多問題。我也不知道如何使用 subprocess 模塊。有人能幫我嗎 ?
添加回答
舉報
0/150
提交
取消