0
我有以下type
:美麗的湯解析HTML全文
<class 'BeautifulSoup.Tag'>
我怎麼會打印出所有包含在這個標籤中的HTML嗎?我想輸出爲字符串:
<div class="txt-block">
<h4 class="inline">Country:</h4>
<a href="/country/us?ref_=tt_dt_dt" itemprop="url">USA</a>
</div>
做.text
給我:
Country:USA