title: How to read a .txt file each multiple (various) lines in python?
body: <p>I have a .txt file, with the following formatted content:</p>
  <pre><code>------------------------
  Fruit 1:
          Name: apple
          Color: green
          Taste: sour
          Property 4: yes
  
  ------------------------       
  Fruit 2:
          Name: strawberry
          Color: red
          Seeds: yes
  
  ------------------------
  Fruit 3:
  ...
  # note: various &quot;Fruit&quot; has different properties and different numbers of properties.
  
  </code></pre>
  <p>I want to read &quot;Fruit (with its all contents) by Fruit&quot;, no matter how many properties each &quot;Fruit&quot; has, I want to read each of them (Fruit) one by one, but not 'line by line'.</p>
  <p>Does anyone have a hint on what function or class I can use to read a .txt file in this way? thanks!</p>
  <p><strong>Update:</strong></p>
  <p>The expected result is saving each Fruit's content into a list with string, for example:</p>
  <pre><code>Fruit 1 =[&quot;        Name: apple&quot;, &quot;        Color: green&quot;, &quot;            Taste: sour&quot;, &quot;        Property 4: yes&quot;]
  
  Fruit 2 =[&quot;        Name: strawberry&quot;, &quot;        Color: red&quot;, &quot;        Seeds: yes&quot;]
  
  Fruit 3 = [...]
  </code></pre>