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

阅读 47

2023-04-21


搜索文档树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参数_python


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


精彩评论(0)

0 0 举报