更新时间:2023-01-14 22:01:52
来自文档:
组零表示整个模式,因此表达式
m.group(0)
相当于m.group()
。
Group zero denotes the entire pattern, so the expression
m.group(0)
is equivalent tom.group()
.
换句话说, mr.group(0)
是整场比赛。
In other words, mr.group(0)
is the entire match.