2016年2月13日

摘要: '''匹配原则,匹配的数据只能够接受字符串'''import rem=re.match('abc','abcdfe')print(m.group())o=re.match('[0-9][0-9]','567ab123c5')#[0-9]只代表一个数字,这样子代表匹配两个数字p=re.match('[ 阅读全文
posted @ 2016-02-13 11:29 卷土重来 阅读(901) 评论(0) 推荐(0) 编辑

导航