beautiful soup是一个解析包,专门用来解析html语法的,lxml是一个解析器,用来分析以及定位内容的 .是class #是id import requests from bs4 import BeautifulSoup html = requests.get('https://www.zygx8.com/forum.php') soup = BeautifulSoup(html.text,'lxml') tbody = soup.select('a font b') print(t…