fork(1) download
  1. import numpy as np
  2.  
  3. a = np.array([_ for _ in range(2*3*4)])
  4.  
  5. print(a.reshape(2, 3, 4))
Success #stdin #stdout 0.19s 27080KB
stdin
Standard input is empty
stdout
[[[ 0  1  2  3]
  [ 4  5  6  7]
  [ 8  9 10 11]]

 [[12 13 14 15]
  [16 17 18 19]
  [20 21 22 23]]]