摘要: re模块的功能介绍 1. 方法 match 从开头开始查找 方法:re.match(pattern,string,flags=0) 返回值:<class '_sre.SRE_Match'>(找到) or None(没找到) 例如:m = re.match('e','excel') print(m.g 阅读全文
posted @ 2017-10-03 21:22 Python改变生活 阅读(2417) 评论(0) 推荐(0) 编辑