Advertisement
OreganoHauch

txt output

Nov 21st, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. with open("combinations_array2.txt", 'w') as f:
  2. f.write(f"# Array shape: {combinations_array.shape}\n")
  3. for array_slice in combinations_array:
  4. np.savetxt("combinations_array2.txt", array_slice, fmt="%i" , delimiter=', ')
  5. f.write("# New slice\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement