我正在使用webbrowser Python module在Internet Explorer中打开图片。具体来说,我正在使用webbrowser.open('C:...', new=0)
命令。
但是,即使我说new=0
我的网址总是在新的浏览器窗口中打开。
我该怎么做才能在已经打开的浏览器窗口中打开我的链接?
感谢您的帮助。
答案 0 :(得分:1)
尝试open_new_tab。
webbrowser.open_new_tab(URL)
Open url in a new page (“tab”) of the default browser, if possible, otherwise equivalent to open_new().