process = subprocess.Popen(["your_cmd"]...) process.wait() 或check_output , check_call所有这些都等待返回代码,具体取决于您要执行的操作和Python 的版本。
確定! 回上一頁