Django 用户认证 用户 邮箱登录 邮箱注册 ORM or,and,not form.py FORM ModelForm Paginator 分页 HTMl JQuery 定位元素 ajax django切片 restfulapi 跨域 Ubantu Python Mysql Scrapy 爬虫 导出 Python读写 Pycharm 破解 session re sqlit3 生成式 其他 Prism 富文本 CSS Nginx 部署 请求头 抓包 协议 selenium Ubuntu 宝塔 AI Comfy-ui ollama dify open-webui Git docker
正则表达式的基本用法

是对字符串的内容进行匹配查询的一种操作方式,通过预先定义的一些特特字符组合,形成一种字符串的匹配规则,再根据这些规则来对字符串中的某一些内容进行提取或查找。

2018年12月7日 02:55 定位元素 Python 爬虫 re


38
Python中re的match、search、findall、finditer区别

1、match re.match(pattern, string[, flags]) 从首字母开始开始匹配,string如果包含pattern子串,则匹配成功,返回Match对象,失败则返回None,若要完全匹配,pattern要以$结尾。 2、search re.search(pattern, string[, flags]) 若string中包含pattern子串,则返回Match对象,否则返

2018年4月14日 16:30 Python re


61