安装使用pip安装
pip install selenium
然后遇到了webdriver的问题,去网站下了驱动网址驱动。
然后分别复制到了 python.exe路径和chrome.exe路径下。
路径下的源码。