擅长:python、mysql、java
<pre><code>>>>import re
# reading a file and reading line in it
>>>text = ''.join(open('file.txt').readlines())
# reading sentences by separating them
>>>sentences = re.split(r' *[][]* *', text)
>>>print (sentences)
</code></pre>
<p>现在这个代码是分开句子的</p>