Discuss / Python / 作业

作业

Topic source

阿萌QVQ

#1 Created at ... [Delete] [Delete and Lock User]

import re

def is_valid_email(addr): return re.match(r'^\w[\w|.]*@\w+.com$', addr)

import re

def name_of_email(addr): return re.match('(<?)([\w\s]+)(>?\s\w@\w+.\w{3})', addr).group(2)


  • 1

Reply