from selenium import webdriver
browser = webdriver.PhantomJS(executable_path="D:PhantomJSphantomjs-2.1.1-windowsinphantomjs")
报错“Unable to start phantomjs with ghostdriver.”
加上r就ok了
from selenium import webdriver
browser = webdriver.PhantomJS(executable_path=r"D:PhantomJSphantomjs-2.1.1-windowsinphantomjs")