Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- primos = [2, 3, 7, 19, 23]
- arreglo_primos = np.array(primos)
- # Guarda en formato binario:
- np.save('primos.npy', arreglo_primos)
- # Guarda en formato texto plano:
- np.savetxt('primos.csv', arreglo_primos, delimiter=',')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement