Python html中一級元素.next_sibling打印爲空

在學到BeautifulSoup庫的兄弟節點有了疑惑,但願見到這篇文章的各位大神們能幫我解決這個疑惑。html 如下是出現問題的代碼,沒有報錯,只是實現與我指望的不一樣。html5 from bs4 import BeautifulSoup sibling_html = """     <html>         <body>             <p><p id="p1">biubiubi
相關文章
相關標籤/搜索