3 基本操作
学习目标
1 生成数组的方法
1.1 生成0和1的数组
ones = np.ones([4,8])
ones1.2 从现有数组生成

1.3 生成固定范围的数组
1.4 生成随机数组






2 数组的索引、切片
3 形状修改
3.1 ndarray.reshape(shape, order)
3.2 ndarray.resize(new_shape)
3.3 ndarray.T
4 类型修改
4.1 ndarray.astype(type)
4.2 ndarray.tostring([order])或者ndarray.tobytes([order])
4.3 jupyter输出太大可能导致崩溃问题【了解】
5 数组的去重
5.1 np.unique()
Last updated