公告
财富商城
积分规则
提问
发文
2020-05-10 06:59发布
老娘就宠你
I still new with python. I try to run an
exe
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"')
Use subprocess module.
import subprocess subprocess.Popen([r"path\filename.exe"]
import os os.system("path_to_exe")
Try using this it will work for sure.
最多设置5个标签!
Use subprocess module.
Try using this it will work for sure.