from bs4import BeautifulSoup
html =open(file_path, 'r', encoding='utf-8')
bsObj = BeautifulSoup(html, 'lxml')
table = bsObj.find_all('table')
rows = table[0].find_all('tr')
from bs4import BeautifulSoup
html =open(file_path, 'r', encoding='utf-8')
bsObj = BeautifulSoup(html, 'lxml')
table = bsObj.find_all('table')
rows = table[0].find_all('tr')
本文标题:BeautifulSoup简单使用
本文链接:https://www.haomeiwen.com/subject/aschzctx.html
网友评论