Loading

摘要: 用正则表达式查找文本模式 import re phoneNumRegex = re.compile(r'\d\d\d-\d\d\d\-\d\d\d\d') mo = phoneNumRegex.search('My number is 415-555-4242.') print(mo.group() 阅读全文
posted @ 2023-05-08 18:07 solomon-zj 阅读(27) 评论(0) 推荐(0)