创建一个tag最好的方法是调用工厂方法 BeautifulSoup.new_tag() : ... soup = BeautifulSoup("<b>stop</b>") tag = soup.new_tag("i") tag.string = "Don't" ...
確定! 回上一頁