Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 6628aed

Browse files
committed
Update Numpy
1 parent d979206 commit 6628aed

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import numpy as np
2+
3+
4+
L = []
5+
for i in range(0, 16):
6+
L.append(i)
7+
8+
9+
N = np.array(L)
10+
print(N)
11+
12+
13+
N = N.reshape(4, -1)
14+
print(N)
15+
16+
17+
N[:, -1] = [100, 200, 300, 400]
18+
print(N)
19+
20+
21+
N[-1] = [100, 200, 300, 400]
22+
print(N)

0 commit comments

Comments
 (0)