首页 > 电脑

python如何打开一个exe文件同时传输参数(参数是一个函数返回值)

更新时间2018-05-24 04:08:09

# -*- coding: utf-8 -*-  
import os
a="*.exe" #这个是变量,可以是别的程序的返回值
result=os.popen(r"cmd /c dir "+ a) #运行程序并加参数
print(result.read())

上一篇:considering

下一篇:exeler如何设置表头在编辑时每页可见