演示代码from selenium import webdriverdriver = webdriver.Firefox()driver.get("https://www.baidu.com")so=driver.find_element_by_id('kw')print(so.is_enabled())driver.quit()