import time

from selenium import webdriver

bd = webdriver.Chrome()

bd.get("http://www.baidu.com")
bd.find_element_by_id("kw").send_keys("华为")
bd.find_element_by_id("su").click()
time.sleep(3)

bd.quit()
612c02ffef847b1472c96435ba89406832d18245
<mask token>

<mask token>
bd.get('http://www.baidu.com')
bd.find_element_by_id('kw').send_keys('华为')
bd.find_element_by_id('su').click()
time.sleep(3)
bd.quit()

<mask token>
bd = webdriver.Chrome()
bd.get('http://www.baidu.com')
bd.find_element_by_id('kw').send_keys('华为')
bd.find_element_by_id('su').click()
time.sleep(3)
bd.quit()

import time
from selenium import webdriver
bd = webdriver.Chrome()
bd.get('http://www.baidu.com')
bd.find_element_by_id('kw').send_keys('华为')
bd.find_element_by_id('su').click()
time.sleep(3)
bd.quit()

import time

from selenium import webdriver

bd = webdriver.Chrome()

bd.get("http://www.baidu.com")
bd.find_element_by_id("kw").send_keys("华为")
bd.find_element_by_id("su").click()
time.sleep(3)

bd.quit()