1、首先导入 Selenium(webdriver)相关模块2、调用 Selenium 的浏览器驱动,获取浏览器句柄(driver)并启动浏览器。3、通过句柄访问百度 URL。4、通过句柄操作页面元素(百度输入框和“百度一下”按钮)。5、通过句柄关闭浏览器。