How can I launch an instance of an application using Python?

后端 未结 7 1448
北恋
北恋 2020-12-09 04:57

I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that i

7条回答
  •  悲&欢浪女
    2020-12-09 05:17

    or

    os.system("start excel.exe ")
    

    (presuming it's in the path, and you're on windows)

    and also on Windows, just start works, too - if it's an associated extension already (as xls would be)

提交回复
热议问题