re.S的作用
import re
a = """sdfkhellolsdlfsdfiooefo:
877898989worldafdsf"""
b = re.findall('hello(.*?)world',a)
c = re.findall('hello(.*?)world',a,re.S)
print ('b is ' , b)
print ('c is ' , c)
# 输出结果:
# b is []
# c is ['lsdlfsdfiooefo:\n877898989']
# re.s是把不同行的数据按一个整体计算