Discuss / Python / 交作业,不知道是否正确

交作业,不知道是否正确

Topic source

水滴竹沙

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

import re mail_check=re.compile(r'([\w.-]+)@([\w.-]+)(.([\w.]+))') mail_check.search('someone@gmail.com').group() mail_check.search('bill.gates@microsoft.com').group() mail_check.search('<Tom Paris> tom@voyager.org').group()

水滴竹沙

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

.-前面少了\


  • 1

Reply