python3中验证
1.python3
2.import numpy as np
3.x=np.array([1,2,3,4,5,6,7,8])
4.pts=list(map(float,x[:8]))
5.pts = np.asarray(pts)
6.pts=pts.reshape(-1,2)
7.ts=[]
8.ts.append(pts)
9. h=np.array(ts,dtype=np.float)
10.h[:,:,0]
11.array([[1., 3., 5., 7.]])