Use Python to split text file into chunks by unique character and a blank line at the end

前端 未结 0 1452
小蘑菇
小蘑菇 2021-02-20 10:54

Given a text input file, I want to split it into chunks to contain every line that begins with \'c\' with a blank space between each chunk. I have successfully isolated every \'

相关标签:
回答
  • 消灭零回复
提交回复
热议问题