阅读背景:

在一个句子中查找单词的开始和结束偏移(后跟多个标点符号)

来源:互联网 
text = 'how much are you pledging to spend on education?!'

p = re.compile('education?!')

print p.search(text)

None
text = 'how much are you pledging to spend on e



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: