suggestions=sel.xpath('//u1[@class="clearfix"]')[0]IndexError: list index out of range这个情况怎么解决
收起
肯定是前面没取到内容啊,你写的那个xpath路径没匹配到内容返回为空。空列表没有第0个
报告相同问题?