如何在python中运行/执行exe文件? [英] How to run/execute exe file in python?
本文介绍了如何在python中运行/执行exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我还是python新手.我尝试运行
I still new with python. I try to run an
exe
exe
使用python的
文件.我可以知道应该使用和导入什么吗?
file by using python. Can i know what should i use and import?
推荐答案
import subprocess
subprocess.call(['C:\\Temp\\a b c\\Notepad.exe', 'C:\\test.txt'])
import os
os.system(r'"C:/Documents and Settings/flow_model/flow.exe"')
这篇关于如何在python中运行/执行exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文