findall中的旗帜是什么意思
Python Re库中的Findall方法具有以下签名:
re.findall(模式,字符串,标志= 0)
令人惊讶的是,在Python文档上的描述并未解释第三个
的含义是什么 一个称为flag
的参数( https://docs.python。 org/3/library/re.html )
The findall method in python re library has the following signature:
re.findall(pattern, string, flags=0)
Surprisingly the description below it on the python docs doesn't explain what is the meaning of the third
a parameter called flag
(https://docs.python.org/3/library/re.html)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需在您的浏览器中搜索网站以查找“ flag”:
您会发现它们在内联标志中记录了FE的模式:
这使您降级
其中包括
其次是所有旗帜
Simply search the site for "flag" in your browser:
and scroll down to where the hits in the sidebar concentrate.
You'll find them f.e. documented in the inline flags for patterns:
which relegates you to
which includes
followed by all the flags there are...