python find all index contains the character string

python find all index contains the character string

Re Import 
[(i.start (), i.end ()) for I in re.finditer (regular expression, String)]

 

Guess you like

Origin www.cnblogs.com/lab-zj/p/12531216.html