Enviado em 16/03/2020 - 15:43h
Boa tarde,# função para definir de n linhas e m colunas
def init_matrix(n_linha,m_coluna):
x = []
for i in range(n_linha):
linha = []
for j in range(m_coluna):
linha = linha + [random.randint(1,10000)]
x = x + [linha]
return x
# mostrar a matriz
def print_matrix(matrix):
print ("Matriz")
for i in range(len(matrix)):
for j in range(len(matrix[0])):
print(matrix[i][j], '\t',)
print ('_' * 10)
init_matrix(100, 90)
print_matrix(init_matrix)
Como escolher o melhor escalonador de CPU para melhorar o desempenho da máquina
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
Instalando TeamViewer no Debian 12
Conheça o Octopi, outro frontend para o Pacman com acesso ao AUR (Arch Linux e derivados)
Terminal transparente no Debian 12 com interface i3wm usando Xfce4-Terminal e Compton
Meu canal de vídeo aulas sobre Linux (0)
horário adiantado no sistema (12)
Apertei Crtl+alt+f4 e agora somente inicia na linha de comando (1)