回答編集履歴

1

append import

2022/12/22 07:22

投稿

ps_aux_grep
ps_aux_grep

スコア1581

test CHANGED
@@ -1,5 +1,7 @@
1
1
  `numpy`を利用して
2
2
  ```Python
3
+ import numpy as np
4
+
3
5
  x = np.array([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12], [13, 14], [15, 16], [17, 18]])
4
6
  print(x.T.reshape(-1, 3))
5
7
  ```