r = requests.get('http://www.dxy.cn/bbs/thread/626626#626626')
soup = bs(r.text,'html.parser')
ls = soup.find_all("td", class_ ="postbody")for i inrange(len(ls)):print(ls[i].get_text(strip=True))
r = requests.get('http://www.dxy.cn/bbs/thread/626626#626626')
tree = etree.HTML(r.text)
user = tree.xpath('//div[@class="auth"]/a/text()')
content = tree.xpath('//td[@class="postbody"]')for i inrange(len(user)):print(user[i].strip()+":"+ content[i].xpath('string(.)').strip())print('-'*80)