关于perl的问题 100:00:09,855 --> 00:00:14,724Britain was an object of desire.200:00:26,295 --> 00:00:31,847Tacitus declared it worth the conquest,300:00:32,015 --> 00:00:35,803the best complimentthat could occur to a Roman.如果以句号为分
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 11:29:28
![关于perl的问题 100:00:09,855 --> 00:00:14,724Britain was an object of desire.200:00:26,295 --> 00:00:31,847Tacitus declared it worth the conquest,300:00:32,015 --> 00:00:35,803the best complimentthat could occur to a Roman.如果以句号为分](/uploads/image/z/13264518-30-8.jpg?t=%E5%85%B3%E4%BA%8Eperl%E7%9A%84%E9%97%AE%E9%A2%98+100%3A00%3A09%2C855+--%3E+00%3A00%3A14%2C724Britain+was+an+object+of+desire.200%3A00%3A26%2C295+--%3E+00%3A00%3A31%2C847Tacitus+declared+it+worth+the+conquest%2C300%3A00%3A32%2C015+--%3E+00%3A00%3A35%2C803the+best+complimentthat+could+occur+to+a+Roman.%E5%A6%82%E6%9E%9C%E4%BB%A5%E5%8F%A5%E5%8F%B7%E4%B8%BA%E5%88%86)
关于perl的问题 100:00:09,855 --> 00:00:14,724Britain was an object of desire.200:00:26,295 --> 00:00:31,847Tacitus declared it worth the conquest,300:00:32,015 --> 00:00:35,803the best complimentthat could occur to a Roman.如果以句号为分
关于perl的问题
1
00:00:09,855 --> 00:00:14,724
Britain was an object of desire.
2
00:00:26,295 --> 00:00:31,847
Tacitus declared it worth the conquest,
3
00:00:32,015 --> 00:00:35,803
the best compliment
that could occur to a Roman.
如果以句号为分割,把对应的时间合并起来,最后得到下面的结果:
1
00:00:09,855 --> 00:00:14,724
Britain was an object of desire.
2
00:00:26,295 --> 00:00:35,803
Tacitus declared it worth the conquest,
the best compliment
that could occur to a Roman.
perl菜鸟,望指教
关于perl的问题 100:00:09,855 --> 00:00:14,724Britain was an object of desire.200:00:26,295 --> 00:00:31,847Tacitus declared it worth the conquest,300:00:32,015 --> 00:00:35,803the best complimentthat could occur to a Roman.如果以句号为分
又问一遍,你上次迷信正则吧.我的答案不采纳
我实现了,但是bug都没判,最好只在每段字幕最后有一个句号.
字幕文件命名为 zimu.txt,会生成zimu_new.txt,放在一个目录下.
#!/usr/bin/perl -w
use strict;
use warnings;
main(@ARGV);
sub main
{
open(ZIMU,'