我必须编写一个包含两个参数的函数,infineName和outfilename。我必须从infineName中获取行并将新行写入outfilename。填充是这样的文本。在
My essay is kind of short. It
is only going to have a few inarticulate
lines and even
fewer paragraphs.
The second paragraph
has arrived, and you can see
it's not much.
The third paragraph now arrives
and departs as hastily.
我的目标是对行进行编号,以便输出如下所示:
^{2}$所以我需要记录段落的编号,以及每一行。我试过while循环,但似乎没有效果。我在这个问题上所取得的进展是微乎其微的。我很擅长格式化,但我不知道如何跟踪它是什么段落,或者当有多个'\n'时。感谢任何帮助。在
希望我不只是做你的家庭作业,但给你。。在
输出:
^{pr2}$相关问题 更多 >
编程相关推荐