本文假设以下上下文:
最好的解释方法是举例说明:
<h2>Alpha blurb</h2>
* content here one
* content here two
<h2>Bravo blurb</h2>
* content here one
* content here two
* content here tree
* content here four
* content here fyve
* content here seeks
<h2>Charlie blurb</h2>
* content here four
* content here fyve
* content here seeks
<h2>Delta blurb</h2>
* blah
从Trevor到目前为止所看到的情况来看,Bsoup使用了一种刮取内容的策略,该策略包括查找容器元素并对其进行迭代和钻取。你知道吗
但是,在这个场景中,Trevor希望提取每个标题项及其关联的内容,即使关联的内容没有包装在包含元素中。你知道吗
一个内容节从何处开始,另一个内容节从何处结束的唯一指示是标题标记的位置。你知道吗
在bsoup4的文档中可以在哪里搜索,或者Trevor可以寻找什么术语来封装这个原理并获得他正在尝试做的事情的结果?你知道吗
特雷弗需要侧着身子,在这里使用^{} 。示例:
印刷品:
相关问题 更多 >
编程相关推荐