使用selenium连接chromedriver会报chromedriver版本号与chrome浏览器不一致问题,主要是chrome会自动更新,通过下载最新的chromedriver并放到C:\Users\Lenovo\AppData\Local\Programs\Python\Python39\Scripts下即python中scripts文件目录下:
chromedriver下载地址: http://chromedriver.storage.googleapis.com/index.htmlhttp://chromedriver.storage.googleapis.com/index.html或者CNPM Binaries Mirrorhttp://npm.taobao.org/mirrors/chromedriver/