Python read specific lines of text
问题 I am having a problem reading specific lines. It's similar to the question answered here: python - Read file from and to specific lines of text The difference, I don't have a fixed end mark. Let me show an example: -------------------------------- \n ***** SOMETHING ***** # i use this as my start \n -------------------------------- \n data of interest data of interest data of interest \n ----------------------- #this will either be dashes, or EOF ***** SOMETHING ***** -----------------------