小编Bal*_*ala的帖子

将参数传递给 Python 中的可执行文件

os.startfile('C:\\test\\sample.exe')用来启动应用程序。我不想知道应用程序的退出状态,我只想启动 exe。

我需要将参数传递给那个 exe 就像 'C:\\test\\sample.exe' -color

请提出一种在 Python 中运行它的方法。

python

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×1