Storing Binary Data and Serializing | Python For The Lab
Let's create, instead, a file with an array of ones: import numpy as np a = np.ones((1024), dtype=np.uint8) np.save('AD_binay', a) with open('AD_ascii.dat', 'w') as f: for i in a: f.write(str(i)+'\n') Python Th