以上问题现已解决
prefs = {"plugins.always_open_pdf_externally": True} chromeOptions.add_experimental_option("prefs",prefs) chromedriver = "pathchromedriver.exe" driver = webdriver.Chrome(executable_path=chromedriver, chrome_options=chromeOptions)


