摘要:
re模块: findall \ search \ replace \ split \ compile \ finditer import re # 字符串 # 匹配 # findall ***** # ret = re.findall('\d+','19874ashfk01248') # print 阅读全文
posted @ 2021-02-26 18:44
跳动0101
阅读(54)
评论(0)
推荐(0)
摘要:
# 帮助学习的工具 http://tool.chinaz.com/regex/ # 字符组 [] # 在一个字符的位置上能出现的内容 # [1bc] 是一个范围 # [0-9][A-Z][a-z] 匹配三个字符 # [abc0-9] 匹配一个字符 # [0-9a-zA-Z] 匹配一个字符 # 18位 阅读全文
posted @ 2021-02-26 14:04
跳动0101
阅读(101)
评论(0)
推荐(0)