2018年4月11日

使用正则表达式,取得点击次数,函数抽离

摘要: import re ''' 1.用正则表达式判断邮箱是否输入正确 2.用正则表达式识别出全部的电话号码(这里用的是固话模式) 3.用正则表达式进行英文单词的分词 ''' def em_match(e): try: c = re.findall(r'[0-9a-zA-Z][0-9a-zA-z\_]*\@[a-z]+\.[c,o,m,n]+', str(e)) ... 阅读全文

posted @ 2018-04-11 13:25 133饶敏 阅读(130) 评论(0) 推荐(0) 编辑

导航