8000 lzhan-5.6 · lzhanforgit/python@a3f4e6f · GitHub
[go: up one dir, main page]

Skip to content

Commit a3f4e6f

Browse files
committed
lzhan-5.6
0 parents  commit a3f4e6f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

1-ndarray.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import numpy as np
2+
narr1=np.array([1,2,3])
3+
narr2=np.array([[1,2,3],[4,5,6]],ndmin=3)
4+
narr3=np.array([[1,2,3],[4,5,6]],dtype=float)
5+
narr4=np.array([3,2,5],order="F")
6+
print(narr1)
7+
print(narr2)
8+
print(narr3)
9+
print(narr4)
10+
11+
num1=np.array([1,2,2],dtype=np.float)
12+
print(num1)
13+
14+
print(np.dtype(np.int32))

0 commit comments

Comments
 (0)
0