You want to save 3D data as an array and print it out.
The 3D data was stored in an array called volumeArray.
But when I used print to print out the array, all the arrays were not printed out, and in the middle...It comes out cut like this.I saved it as txt just in case, and it's the same...is coming out
How do I print out the array I collected?
I will attach the code I saved as txt.
f = open('C:\Users\admin\Documents\label2.txt','w')
f.write('\n'.join(map(str,volumeArray)))
f.close()
python array
If it's a numpy array, np.Try saving, np.savext, etc.
https://rfriend.tistory.com/358
© 2024 OneMinuteCode. All rights reserved.