In [3]: re.findall(r"([^.]*?apple[^.]*.)",txt) Out[4]: ['I like to eat apple.', " Let's go buy some apples."]
上一篇 使用request.get()时未提供任何模式以及其他错误
下一篇 Windows的Python SVN绑定
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号