[Python]使用带参数的子进程打开程序 [英] [Python]open program using subprocess with arguments
本文介绍了[Python]使用带参数的子进程打开程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试了什么:
subprocess.Popen( ExecutablePath.exe -i myargument)
解决方案
17.1 。 subprocess - 子流程管理 - Python 2.7.13文档 [ ^ ]。
hey ! I am using python 2.7, and i want to open through my python script another executable in a subprocess. I am specifically using subprocess.Popen method. Now, what i want is to open this program in a subprocess... but also pass arguments to it. Is there a way ?? Thanks
What I have tried:
subprocess.Popen("ExecutablePath.exe -i myargument")
解决方案
17.1. subprocess — Subprocess management — Python 2.7.13 documentation[^].
这篇关于[Python]使用带参数的子进程打开程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文