2017年8月31日

re正则表达式

摘要: 什么东西网上一找,铺天盖地全是,看自己的天赋,能学多少是多少。 p = re.compile(r'(?P<word>\b\w+\b)')m = p.search('((((Losts of punctuation)))')m.group('word')'Losts' {0,} 等同于 *,{1,} 阅读全文

posted @ 2017-08-31 16:02 Jt00 阅读(240) 评论(0) 推荐(0) 编辑

导航