driver.find_element(by=By.XPATH, value='//input[@id="checkbox_0"]/../../div[2]') #结构不变可以试试这个,并且input的id唯一