Guest User

Untitled

a guest
Feb 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import numpy as np
  2.  
  3.  
  4. primos = [2, 3, 7, 19, 23]
  5.  
  6. arreglo_primos = np.array(primos)
  7.  
  8. # Guarda en formato binario:
  9. np.save('primos.npy', arreglo_primos)
  10.  
  11. # Guarda en formato texto plano:
  12. np.savetxt('primos.csv', arreglo_primos, delimiter=',')
Add Comment
Please, Sign In to add comment