Skip to content

Instantly share code, notes, and snippets.

@miltonlab
Created May 4, 2015 14:13
Show Gist options
  • Save miltonlab/600e3acae7e39ad85eae to your computer and use it in GitHub Desktop.
Save miltonlab/600e3acae7e39ad85eae to your computer and use it in GitHub Desktop.
Manejo de Arreglos en Python
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)
@miltonlab
Copy link
Author

UIDE2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment