Python编程之Re模块下的函数介绍 re模块下的函数compile(pattern):创建模式对象importrepat=re.compile('A')m=pat.search('CBA')#等价于re.sear 的re模块