只需在程序中添加此额外的行
from selenium.webdriver.chrome.options import Options
它会工作…
像这样
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chop = webdriver.ChromeOptions()
chop.add_extension('Adblock-Plus_v1.4.1.crx')
driver = webdriver.Chrome(chrome_options = chop)