text = ‘aaaaaa·bbbbbb·ccccccc’
import re
p = re.compile(r’a+’)
#a+可重复匹配多次,a{}可指定次数
for one in p.findall(text):
print(one)
text = ‘aaaaaa·bbbbbb·ccccccc’
import re
p = re.compile(r’a+’)
#a+可重复匹配多次,a{}可指定次数
for one in p.findall(text):
print(one)