摘要:
import re a = "123456789@qq.com" b = '020-88770099' mail = re.search('\d{6,12}@[a-zA-Z0-9]+.[a-zA-Z0-9]+', a).group(0) tele_num = re.search('\d{3,4}-\d{6,8}', b).group(0) print(mail+'\n'+tele_num) ... 阅读全文
摘要:
f = open('C:\\Users\\Administrator\\Desktop\\s.txt', 'r', encoding='utf-8') a = f.read() d = {} h = '''.'!?:,''' danci = ['the', 'and', 'a'] for j in 阅读全文