问题的描述:当我运行代码时,它首先打开chrome浏览器,打开google.com网站,然后无缘无故地关闭它。这是我的密码:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
opts = Options()
opts.add_argument("user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) Apple