Python BeautifulSoup使用问题

2025-01-02 22:35:30
推荐回答(1个)
回答1:

from bs4 import BeautifulSoup

soup = BeautifulSoup("www.baidu.com","lxml")
print(str(soup.prettify()))