数据科学导论 安装Selenium+chromedriver.exe 测试代码
//测试是否安装成功的代码
from selenium import webdriver#引入驱动器
from selenium.webdriver.chrome.options import Options
options = Options()
#chrome.exe的存放位置,不设置可能会报错
options.binary_location = "C:\Program Files\Google\Chrome\Application\chrome.exe"
#设置chromedriver.exe的位.
原创
2020-10-05 19:15:39 ·
215 阅读 ·
0 评论