I saved the array as txt, but I don't get all the elements.

Asked 2 years ago, Updated 2 years ago, 62 views

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

2022-09-22 18:52

1 Answers

If it's a numpy array, np.Try saving, np.savext, etc.

https://rfriend.tistory.com/358


2022-09-22 18:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.