tr_list = self.driver.find_elements_by_xpath('//table[@class="hyreport-table tl"]/tbody//tr') for i in range(0,100): for i in range(0,len(tr_list)): content=etree(tr_list[i]).xpath("string(//*[@class='pl20'])") source=etree(tr_list[i]).xpath('//td[@class="ellipsis"]/span/text()') size=etree(tr_list[i]).xpath('//td[5]/text()') report_time=etree(tr_list[i]).xpath('//td[6]/text()') print("获取内容为:下面打印的内容") Traceback (most recent call last): File "qimingpian.py", line 115, in <module> qimingpian().get_content() File "qimingpian.py", line 92, in get_content content=etree(tr_list[i]).xpath("string(//*[@class='pl20'])") TypeError: 'module' object is not callable
SMILET
幕布斯6054654