迷惑BUG1 有bug from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_argument('–no-sandbox')options.add_argument('–headless')options.add_argument('--disable-dev-shm-usage')driver = webdriver.Chrome(chrome_options=options)driver.get("https://www.baidu.com")print(driver.page_source)driver.quit() 无bug from selenium.webdriver.chrome.options import Optionschrome_options = Options()chrome_options.add_argument('--no-sandbox')chrome_options.add_argument('--disable-dev-shm-usage')chrome_options.add_argument('--headless')browser = webdriver.Chrome(chrome_options=chrome_options)browser.get("https://www.baidu.com")print(browser.page_source)browser.quit()文章作者: blime4文章链接: https://blime4.github.io/posts/b782c81a/版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 𝓑𝓵𝓲𝓶𝓮'𝓼 𝓑𝓵𝓸𝓰!bug 打赏微信支付寶上一篇jupyter端口被占用,怎么办下一篇vscode远程连接jupyter 相关推荐 2020-07-01Jquery 304 2020-06-20[hexo已解决] Error: ENOSPC: System limit for number of file watchers reached 2020-07-10wsl jupyter突然无法使用解决方法 评论