Simpan string dengan savetext numpy
np.savetxt('test.txt', DAT, delimiter=" ", fmt="%s")
Real Raccoon
np.savetxt('test.txt', DAT, delimiter=" ", fmt="%s")
a_file = open("test.txt", "w")
for row in an_array:
np.savetxt(a_file, row)
a_file.close()
numpy.savetxt(fname, X, fmt='%.18e', delimiter=' ', newline='\n', header='', footer='', comments='# ', encoding=None)