现在的代码是这个样子的
dr.find_elements(By.XPATH, "//*[@class="clearfix"]/a")[0].click()
selenium版本更新过了,要再导入By模块
from selenium.webdriver.common.by import Byfrom selenium import webdriver