read a file contains list and comma separation in python
<p>I have a file(.txt) which contains: <code>[0 1,1 1,3 2,4 1]</code></p>

<p>I want to read the file in this way:</p>

<pre><code>0 1 /n
1 1 /n
3 2 /n
4 1 /n
</code></pre>

<p>I have problem how to eliminate brackets and separate each line by comma. 
Thanks for your suggestions :)</p>
