2018年4月11日
摘要: 学会使用正则表达式 1. 用正则表达式判定邮箱是否输入正确。 import re text = "64sdfsdff942@q.q.com" if re.match(r'^[0-9a-zA-Z_]{0,19}@[0-9a-zA-Z]{1,13}\.[com,cn,net]{1,3}$', text) 阅读全文
posted @ 2018-04-11 20:41 240王家乐 阅读(106) 评论(0) 推荐(0) 编辑