今写代码写了一个超长的列表推导式

rounds = [re.sub(r' {3,}', '', u.replace('\n','').strip()) if '\n' in u else u for u in i.xpath('../div/div//p/text()')]

哈哈没事就记录下