“Python inicialize uma matriz 2D” Respostas de código

Python inicialize uma matriz 2D

x = [[foo for i in range(10)] for j in range(10)]
# x is now a 10x10 array of 'foo' (which can depend on i and j if you want)
Unusual Unicorn

inicialize uma matriz 2D Python

x = [[foo for i in range(10)] for j in range(10)]
# x is now a 10x10 array of 'foo' (which can depend on i and j if you want)
Muddy Magpie

Respostas semelhantes a “Python inicialize uma matriz 2D”

Perguntas semelhantes a “Python inicialize uma matriz 2D”

Mais respostas relacionadas para “Python inicialize uma matriz 2D” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código