0
点赞
收藏
分享

微信扫一扫

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


搜索文档树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 条评论