Python opens the file and writes the contents of the list and numpy arrays to the method in the txt file
- 2021-01-02 21:55:39
- OfStack
python Saves numpy data:
numpy.savetxt("result.txt", numpy_data);
Save list data:
file=open('data.txt','w')
file.write(str(list_data));
file.close()