from selenium import webdriver
#导入谷歌浏览器的chrome_driver
chrome_driver = r"C:python36Libsite-packagesseleniumwebdriverchromechromedriver.exe"
#打开谷歌浏览器
driver = webdriver.Chrome(executable_path=chrome_driver)
driver.get("http://www.baidu.com")
from selenium import webdriver
#导入谷歌浏览器的chrome_driver
chrome_driver = r"C:python36Libsite-packagesseleniumwebdriverchromechromedriver.exe"
#打开谷歌浏览器
driver = webdriver.Chrome(executable_path=chrome_driver)
driver.get("http://www.baidu.com")