y = nparange1 lenX+1reshape-1 1
This code creates a numpy array 'y' with values ranging from 1 to the length of another numpy array 'X', inclusive. The reshape function is used to convert the array into a single column (1D) array.
原文地址: http://www.cveoy.top/t/topic/fnZD 著作权归作者所有。请勿转载和采集!