我想將文本文件拆分爲字符串,請告訴我如何拆分它。例如,下面的文本文件中給出:如何將文本分割爲字符串?
this course in, a style i
will have to a modern, language that encourages
writing clean; and elegant code in a good
是否有可能由2個字的文本文件拆分成字符串像下面的,例如:
this course
in a
style i
will have
to a
modern language
that encourages
writing clean
and elegant
code in
a good
能否請您給我一些提示?先謝謝你。
如何大約奇數個第一一行字???你將如何將它們拆分成兩個單詞分割機制? – Umer
難道不可能轉到下一行並將其拆分。例如, 這輛車是紅色// 和昂貴 然後如果我們通過3個字拆分它,然後,輸出類似以下 這輛車是// 紅色和 在這裏,我注意到新行貴「//」 。 – user1002579