起首,打開py文件,如圖,有如下代碼。
import time
from selenium import webdriver
driver = webdriver.Chrome()
 然后運行py文件,run——run module
 若是這樣就會提醒報錯FileNotFoundError: [WinError 2]系統找不到指定文件,如圖。
 那么,從網上下載一個chromedriver.exe文件,放在Python的根目次下一般在:C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32
 然后,再運行run——run module
 這樣就不會報錯了。
 END0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!