# 导包 from time import sleep from selenium.webdriver.chrome.webdriver import WebDriver # 实例化浏览器 driver = WebDriver() # 打开网址 driver.get('https://www.baidu.com/')