Numpy study notes (1)

Tuesday, January 18, 2022

Python study notes (learning of numpy library, first lesson)

The first part (ipyhon tips, anaconda compiler understanding, there is a download method in the first section of the video)

The second part (knowing numpy)

Lists in Python can have different element types, and array elements must be of the same type.

I guess, the number after the int represents the range

Part 3 (creation command)

Ndarry is like an array in matlab

X=np.zeros((3,6),dtype=np.int32)

A=np.linspace(1,10,4), 4 is the step size, the result is 1.,4.,7.,10.

A=np.linspace(1,10,4,endpoint=False), the result is 1., 3.25, 5.5, 7.75, the effect is similar to 1:10:4

create a new array

4. The fourth part (index and slice (similar to multidimensional array))

5. The fifth part (computation)

Guess you like

Origin blog.csdn.net/m0_57491181/article/details/125534657