摘要: 一、校验数字的表达式 二、校验字符的表达式 三、特殊需求表达式 阅读全文
posted @ 2019-10-24 17:22 John-Python 阅读(146) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*- # 正则表达式 import re # 使用match方法进行操作,匹配从头到尾的数据 # re.match(正则表达式,需要处理的字符串) a = re.match("hello", "hello world") # 检查第二个参数中是否存在第一个参数 阅读全文
posted @ 2019-10-24 14:37 John-Python 阅读(607) 评论(0) 推荐(0) 编辑