title: How to cut a line in python?
body: <pre><code>2331,0,13:30:08,25.35,22.05,23.8,23.9,23.5,23.7,5455,350,23.65,132,23.6,268,23.55,235,23.5,625,23.45,459,23.7,83,23.75,360,23.8,291,23.85,186,23.9,331,0,1,25,1000,733580089,name,,,
  </code></pre>
  
  <p>I got a line like this and how could I cut it? I only need the first 9 variable like this:</p>
  
  <pre><code>2331,0,13:30:08,25.35,22.05,23.8,23.9,23.5,23.7,5455
  </code></pre>
  
  <p>the original data i save as txt.file, and could I rewrite the original one and save?</p>