使用text获取的值是空driver.find_element_by_xpath("//*[@id='software-contain-template']/ul/li[2]/div[2]").text
你定位错了啊class="software-contain-li-last"这才是你需要的
看错了,我不会xpath我一般用bs4.soup.find(".software-contain-li-last").text