Open IE Browser Window

后端 未结 7 491
梦谈多话
梦谈多话 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:05

    If you plan to use the script in more than your machine, keep in mind that not everyone has a English version of Windows

    import subprocess
    import os
    
    subprocess.Popen(r'"' + os.environ["PROGRAMFILES"] + '\Internet Explorer\IEXPLORE.EXE" www.google.com')
    

提交回复
热议问题