摘要: # | 或 :匹配左右任意一个表达式 import re # res = re.match('[1-9]?\d$|123', '123') # [1-9]?\d$ 最多两个字符,但是或|运算,用了123去匹配 # print(res.group()) # 123 # res = re.match(' 阅读全文
posted @ 2021-04-26 22:26 每天都在学习的自己 阅读(73) 评论(0) 推荐(0)