“Python foreach 2d matriz” Código de respuesta

Crea una matriz 2D en Python

def build_matrix(rows, cols):
    matrix = []

    for r in range(0, rows):
        matrix.append([0 for c in range(0, cols)])

    return matrix

if __name__ == '__main__':
    build_matrix(6, 10)
McBurd

Python foreach 2d matriz

for i in twodarray:
    for j in i:
        print j
slohobo

Respuestas similares a “Python foreach 2d matriz”

Preguntas similares a “Python foreach 2d matriz”

Más respuestas relacionadas con “Python foreach 2d matriz” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código