Skip to content

Commit 4d6519e

Browse files
committed
update day2 homework
1 parent c12db4c commit 4d6519e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

D02/homework.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import numpy as np
2+
3+
array1 = np.array(range(30))
4+
a = array1.reshape((5,6), order='F')
5+
print(a)
6+
b = np.where(a%6==1,a,0)
7+
c = np.where(a%6==1)
8+
print(b)
9+
print(c)

0 commit comments

Comments
 (0)