我明白使用 subprocess是调用外部命令的首选方式. 但是,如果我想在parall中运行几个命令,但是限制生成的进程数量呢?令我困扰的是我无法阻止子进程.例如,如果我打电话 subprocess.Popen(cmd, stderr=outputfile, stdout=outputfile) 然后,进程将继续,而不用等
在线咨询:
邮箱: xwei067@foxmail.com
工作时间:周一至周五,9:00-17:30,节假日休息