draft.py 84 B

1234
  1. import numpy as np
  2. n = 3
  3. m = np.array(range(1, (n * n) + 1)).reshape(n, n)
  4. print(m)