If I terminate a python subprocess, does it clear the associated variable memory?

后端 未结 0 1012
青春惊慌失措
青春惊慌失措 2021-02-13 05:45

I have the following code:

import subprocess
import os
import gc

p = subprocess.Popen([\'python\', \'def_train_models.py\'])
while(True):
    poll = p.poll()
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题