2018年4月9日

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

摘要: 学会使用正则表达式 1. 用正则表达式判定邮箱是否输入正确。 r = '(/w)+([\.\_\-]\w+)*@(\w)+((\.\w{2,3}){1,3})$' e = '623608874@qq.com' if re.match(r,e): print('suc') else: print('p 阅读全文

posted @ 2018-04-09 11:39 114周展鹏 阅读(90) 评论(0) 推荐(0) 编辑

导航