2020年12月20日

Python正则表达式

摘要: import re # str1 = 'imook python' # pa = re.compile(r'imook') # ma = pa.match(str1) #输出匹配到的字符串 #print(ma.group()) #输出匹配到的字符串的位置 #print(ma.span()) # ma 阅读全文

posted @ 2020-12-20 13:33 达摩克利斯 阅读(83) 评论(0) 推荐(0) 编辑

导航