Ver Mensaje Individual
  #6 (permalink)  
Antiguo 18/11/2010, 11:40
REHome
 
Fecha de Ingreso: mayo-2007
Ubicación: PIC-16F84A
Mensajes: 727
Antigüedad: 16 años, 10 meses
Puntos: 8
Respuesta: Traspuesta

No lo sabía. Sorry.

Leyendo bien, bien este libro en PDF, es así:

Código Python:
Ver original
  1. M1 = [[1, 2,  3], [2, 12, 6], [1, 0, -3], [10, -1, 0]]
  2. M2 = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
  3.  
  4. for i in range(4):
  5.     for j in range(3):
  6.         M2[j][i] = M1[i][j]
  7.  
  8.  
  9. for i in range(3):
  10.     print(M2[i])

http://marmota.act.uji.es/mtp/pdf/python.pdf

;)
__________________
Meta Shell, VERSIÓN 1.2.2
Descargar