使用Chrome时,在创建驱动程序时可以添加选项。只需执行以下操作即可: options = Options() options.headless = True driver = webdriver.Chrome(PATH\TO\DRIVER, options=options) 但是尝试...