>>> m = re.search(r'\\\d','\8')
>>> if m is not None: m.group()
'\\8'
有哪位朋友能看得懂这个是怎么匹配出来的吗?能解释一下吗?
>>> m = re.search(r'\\\d','\\8')
>>> if m is not None: m.group()
'\\8'
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
if m is not None:
print(m.group())你的问题都是python的re模块的基础知识
按F1,看用户手册。