Installation Module
pip install numpy
Import module
import numpy as np
Creating an array
数组 = np.array(列表)
数组 = np.array(range(起始数,终止数)
数组 = np.arange(起始数,终止数)
Class names array of objects
numpy.ndarray
Type array members
Type of array data
Create an array of the specified type
数组 = np.array(列表, dtype=类型)
Modify the data type
新数组 = 数组.astype(类型)
Mantissa choice decimal array
新数组 = np.round(原数组,保留位数)