阅读背景:

Python re.split()将分隔符的一部分保留为第一个字符串的一部分,其他部分作为第二个字符串的一部分等

来源:互联网 

I have a situation where I want to split a long block of text into sentences. I have a working piece of code that splits the string as I would like, however it removes the delimiters (which I knew it would). Now, I want to be able to keep those delimiters as part of the output strings (reallocated appropriately).I have a situation where I want to split a long




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

分享到: