python中bs4.BeautifulSoup的基本用法 导入模块frombs4importBeautifulSoupsoup=BeautifulSoup(html_doc,"html.parser")下面看下常见的用法print(soup.a) bs4.beautifulsoup