
- 帖子
- 15
- 积分
- 28
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2022-6-24
|
[文本处理] 把文本文件中按行加入另外文本文件中写一个批处理程序
如题要求,求大佬帮忙哈5行文本1
Legend has it that,
among the mountains in southwestern China,
there lives “four girls".
To protect the villagers here,
they fought against fierce demons
and transformed into four mountains finally.
文本2也是5段
1
00:00:04,458 --> 00:00:05,291
相传
2
00:00:05,833 --> 00:00:08,041
在中国西南的群山中
3
00:00:08,041 --> 00:00:09,708
生活着“四位姑娘’
4
00:00:10,166 --> 00:00:12,208
她们为保护这里的村民
5
00:00:12,208 --> 00:00:14,083
与凶猛的妖魔对战
运行后效果
1
00:00:04,458 --> 00:00:05,291
相传
Legend has it that,
2
00:00:05,833 --> 00:00:08,041
在中国西南的群山中
among the mountains in southwestern China,
3
00:00:08,041 --> 00:00:09,708
生活着“四位姑娘’
there lives “four girls".
4
00:00:10,166 --> 00:00:12,208
她们为保护这里的村民
To protect the villagers here,
5
00:00:12,208 --> 00:00:14,083
与凶猛的妖魔对战
they fought against fierce demons
也可以说是某文本内容逐行按序插入srt字幕文件中,以形成双语字幕效果
实际文本行数随机
但是文本行数和字幕段数是相等的 |
|