python正则表达式匹配问题?


clipboard.png
上面是代码,问题是,为什么不能匹配到mark和数字2?

python 正则表达式

环状DNA 8 years, 11 months ago

使用 findall

妹子我来了 answered 8 years, 11 months ago

match方法是从字符串开头开始匹配的 字符串开头不是'mark' '2' 当然匹配不到 试试search方法

穿的像瓢虫 answered 8 years, 11 months ago

Your Answer