I have matrix , which presented as 2 dimensional array. It seems like I can use numpy.ndarray.tofile to export it into text file, but it just generate everything in one line. How can I get text file in matrix format(say, one line is one row in matrix)? like
1 2 3
4 5 6
7 8 9
instead of
1 2 3 4 5 6 7 8 9