1、subprocess.popen 失效问题
添加如下信息
si = subprocess.STARTUPINFO()
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
res = subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True, startupinfo=si)
网友评论