如何从文本文件中识别段落。 [英] How to identify Paragraph from text file.

查看:189
本文介绍了如何从文本文件中识别段落。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从文本文件中识别段落??

假设我有一个包含多个段落的文本文件,那么我该如何分离该段落?如何解析该段落??

How do i identify paragraph from text file...?
Suppose i have text file which contain more then one paragraph then how can i separate that paragraph...? how to parse that paragraph...?

推荐答案

在文本文件中,文本和段落之间没有区别。它是通过在文本块之间给出空格来进行直观表示。如果要区分,则需要查找多个输入键的模式。
In text file there is no difference between a text and paragraph. It's visual representation by giving a space between block of text. If you want to differentiate then you need to look for a pattern of multiple enter keys.


是纯文本还是文档文件,如Word文档?



在文本文件中,段落通常以两个连续回车(或回车/换行)结束



Word文档hava段落对象
Is it pure text or a document file such as a Word document?

In a text file, a paragraph would normally end with two consecutive carriage returns (or carriage return/line feeds)

Word documents hava paragraph objects


这篇关于如何从文本文件中识别段落。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆