Open IE Browser Window

后端 未结 7 449
梦谈多话
梦谈多话 2021-02-05 17:59

The webbrowser library provides a convenient way to launch a URL with a browser window through the webbrowser.open() method. Numerous browser types are available, b

7条回答
  •  有刺的猬
    2021-02-05 18:08

    iexplore = os.path.join(os.environ.get("PROGRAMFILES", "C:\\Program Files"),
        "Internet Explorer\\IEXPLORE.EXE")
    ie = webbrowser.BackgroundBrowser(iexplore)
    ie.open(...)
    

    This is what the webrowser module uses internally.

提交回复
热议问题