Python遇到過得text和text()

  一、BeautifulSoup中的.text方法和get_text()方法的區別 若是你想要用text值,應該調用對應的get_text(),html 'cate': list(cate.stripped_strings)     obj.stripped_strings:高級的get_text()  ,外面加list能夠列表化html5 soup.title # <title>The Dor
相關文章
相關標籤/搜索