课程视频地址:
https://edu.csdn.net/course/detail/28645

搜索文档树find_all方法-text参数

text参数
文档内容如下:

html_doc = “”"

The Dormouse's story

The Dormouse's story

Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well.

...

"""

通过text参数可以搜搜文档中的字符串内容.与name参数的可选值一样,text参数接受 字符串 , 正则表达式 , 列表等。看例子:

【四二学堂】搜索文档树find_all方法-text参数
【四二学堂】搜索文档树find_all方法-text参数

相关文章:

  • 2023-03-07
  • 2021-09-04
  • 2021-12-09
  • 2021-11-19
  • 2021-10-13
  • 2021-10-18
  • 2021-11-04
  • 2021-05-17
猜你喜欢
  • 2021-12-31
  • 2021-10-28
  • 2021-05-18
  • 2021-06-23
  • 2021-08-03
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案