会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Achilles_Heel
博客园
首页
新随笔
联系
管理
订阅
2020年8月6日
Python学习——正则表达式
摘要: match方法: match尝试从字符串的起始位置开始匹配 如果起始位置没有匹配成功, 返回None; 如果起始位置匹配成功, 返回一个对象, 通过group方法获取匹配的内容; import re # re:regular express 正则表达式 aObj = re.match(r'we',
阅读全文
posted @ 2020-08-06 20:08 Achilles_Heel
阅读(273)
评论(0)
推荐(0)
编辑
公告