Created
May 4, 2015 14:13
-
-
Save miltonlab/600e3acae7e39ad85eae to your computer and use it in GitHub Desktop.
Manejo de Arreglos en Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
#creacion e inicializacion | |
a = numpy.array([2,4,5,9]) | |
#creacion | |
b = numpy.array() | |
#inicializacion, por defecto el tipo de dato usado es float | |
b = numpy.empty(4) | |
#Mas formas de inicializacion | |
dias = numpy.empty(7) | |
edades = numpy.empty(20, dtype=int) | |
notas = numpy.zeros(3) | |
vocales = numpy.empty(5,dtype=str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UIDE2015