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