首先我们看下官方文档里关于的compile的说明:
- re.compile(pattern, flags=0)
- Compile a regular expression pattern into a regular expression object, which can be used for matching using its match() and search() methods, described below.The expression’s behaviour can be modified by specifying a flags value. Values can be any of the following variables, combined using bitwise OR (the | operator).
- <