Easy question

Duncan Smith buzzard at urubu.freeserve.co.uk
Wed Apr 11 16:39:12 EDT 2001


I need to read some data from a file.  Each (tab delimited) row corresponds
to an array index eg.

0    0    0    0    0    0
0    1    0    0    0    0
0    0    1    0    0    0
...

And I need something like,

[[0,0,0,0,0,0], [0,1,0,0,0,0], [0,0,1,0,0,0], ...]

What's the best way of doing this?  Cheers in advance.

Duncan Smith







More information about the Python-list mailing list