有什么区别?他们不做同样的事情 - 找到具有给定属性的内部标签吗?
最佳答案
findChildren 返回一个 resultSet 就像 find_all 一样,使用任何一种方法都没有区别,如 findChildren实际上是 find_all,如果您查看源代码的链接,您可以看到:
findChildren = find_all # BS2
这是为了向后兼容 findAll = find_all # BS3
关于python - BeautifulSoup findAll 和 findChildren 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38838460/