15
IM解析HTML:提取元素,並插入使用Python中BeautifulSoup</p> <p>我不知道如何提取文本元素</p> <p>時,這是代碼插入空格空格
import BeautifulSoup
soup=BeautifulSoup.BeautifulSoup('<html>this<b>is</b>example</html>')
print soup.text
然後輸出是
這個樣本
,但我想插入到這個空間像
肯定是例如
如何插入一個空間?