day23-2018-11-16-Re 正则表达式
摘要:
import re # res = re.search("e", "alex and exp") # 搜索. 搜到结果就返回 # print(res.group()) # res = re.match("\w+", "alex is not a good man") # 从头匹配. 如果匹配到了。 阅读全文
posted @ 2018-11-16 21:46 VastTry 阅读(201) 评论(0) 推荐(0) 编辑