正则表达式(re模块,匹配单个字符,匹配多个字符,匹配分组,python贪婪和非贪婪,r的作用)
re.match() 能够匹配出以xxx开头的字符串匹配单个字符示例1: .#coding=utf-8import reret = re.match(".","M")print(ret.group())ret = re.match("t.o","too")print(ret.group())ret = re.match("t.o","two")print(re
原创
2019-01-03 11:27:57 ·
16420 阅读 ·
5 评论