import sys import numpy numpy.set_printoptions(threshold=sys.maxsize)
with numpy.printoptions(threshold=numpy.inf): print(arr)
numpy.savetxt(sys.stdout, numpy.arange(10000))