#-*-coding:utf-8-*-
import re
print('======================欢迎使用窗内网会员注册系统=======================')
name = input('请输入用户名:\n')
pwds1 = input('请输入登录密码:\n')
pwds2 = input('请确认密码:\n')
text = input('请输入邮箱地址:\n')
m = re.match(r'^([a-z0-9A-Z]+[-1\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\.)+[a-zA-Z]{2,}$',text)
if m:
print(name,'您好!您的账号已经注册成功!\n您的邮箱地址为:',text+'\n请保管好您的账号信息!')
else:
print('邮箱格式不正确,请重新输入邮箱地址!')
text = input('请输入邮箱地址:\n')
m = re.match(r'^([a-z0-9A-Z]+[-1\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\.)+[a-zA-Z]{2,}$',text)