fork(2) download
  1. import numpy as np
  2.  
  3. matriz = np.array([
  4. [13, 28, 45, 50, 26, 10],
  5. [27, 24, 22, 33, 88, 11],
  6. [90, 25, 85, 23, 76, 55],
  7. [77, 15, 31, 29, 13, 14],
  8. [66, 41, 50, 20, 47, 11]
  9. ])
  10.  
  11. print(matriz[0:3, 1:4])
  12. print('')
  13. print(matriz[2:, 0:3])
  14.  
Success #stdin #stdout 0.07s 92672KB
stdin
Standard input is empty
stdout
[[28 45 50]
 [24 22 33]
 [25 85 23]]

[[90 25 85]
 [77 15 31]
 [66 41 50]]