我有一个包含很多单词的文件:
one
two
three
four
tree
house
cat
dog
etc
Run Code Online (Sandbox Code Playgroud)
我想删除所有单词,直到"house"以这样的方式获取:
cat
dog
etc
Run Code Online (Sandbox Code Playgroud) 例如,我有一个包含5行的文本文件:
one
two
three
four
five
Run Code Online (Sandbox Code Playgroud)
我想制作一个脚本来制作一个包含上面文件循环的2000行文件,它看起来像
one
two
three
four
five
one
two
three
four
five
one
two
three
four
five
............repeat until n times is reached
Run Code Online (Sandbox Code Playgroud)