from selenium import webdriver
self.browser = webdriver.Chrome()
for i in range(0, len(urls)):url = urls[i]windows_open = "window.open('" + url + "')"self.browser.execute_script(windows_open)
如果需要开多个窗口:
for i in range(0, len(urls)):url = urls[i]self.browser = webdriver.Chrome()windows_open = "window.open('" + url + "')"self.browser.execute_script(windows_open)