返回的匹配列表是否为re.findall总是与源文本中的顺序相同?
re.findall
是的,正如中所述re module docs https://docs.python.org/2/library/re.html#module-contents:
re
以字符串列表的形式返回字符串中模式的所有非重叠匹配项。从左到右扫描字符串,并按找到的顺序返回匹配项。