win环境下,python调.exe,并需要python向.exe传递几个参数(包括地址参数等),求教怎么处理。
win环境下,python调.exe,并需要python向.exe传递几个参数(包括地址参数等),求教怎么处理。
|
zhipengApr 16, 2015
1
|
|
marchonApr 16, 2015
2
推荐用subprocess.Popen
|
|
quadpixelsApr 16, 2015
4
@xxer
在Linux下是这样的(程序名和参数存在一个列表里);在Windows下应该也差不多吧 ``pipe = subprocess.Popen(["ls", "-l", "."], shell=False, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)`` |