import numpy
a = numpy.array([[1.0, 2, 3], [4, 5, 6], [7, 8, 9]])
print(str(a).replace(' ', '').replace('.', '').replace('[', '').replace(']', ''
    ))
How to print Numpy arrays without any extra notation (square brackets [ ] and spaces between elements)?