像这样有规律的 都可以循环一下:driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[3]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[5]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[7]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[9]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[11]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[13]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[15]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[17]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[19]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[21]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[23]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[25]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[27]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[29]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[31]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[33]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[35]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[37]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[39]/td/div[1]/label/span[1]').click()
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[41]/td/div[1]/label/span[1]').click()
for x in range(3,42,2):
driver.find_element_by_xpath('//*[@id="page-content-template"]/div/div/div[1]/form/div/table/tbody/tr[%d]/td/div[1]/label/span[1]'%x).click()
|