首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >ruby 在原文本文件中将每一行前面的部分进行删除,如果当前行没有内容写到test.txt文件中?

ruby 在原文本文件中将每一行前面的部分进行删除,如果当前行没有内容写到test.txt文件中?

提问于 2020-04-09 21:16:58
回答 0关注 0查看 192

以下内容中,”数字<##>” 部分需要删除掉;

0<##>A Flight Determination of the Moments of the YG-1B Tapered Blade Rotor about the Hub Trunnions

1<##>At the request of the Materiel Division, Wright Field, the National ….

2<##>Results of Landing Tests of Kellett YG-1 Autogiro (A. C. R. 35-278)

3<##>Flight tests were made with a Kellett YG-1 autogiro to determine the relationship between ….

4<##>Blade Motion and Bouncing Tests of KD-1 Autogiro

。。。。

如果当前行在删除”数字<##>” 部分后没有其他内容,就将当前行存放到error-1.txt文件中

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档