numpy array的数据类型

在使用array函数构造数组时,需要指定数据类型dtype
以下为dtype的常用类型
bool8 8 bits

int8 8 bits
int16 16 bits
int32 32 bits
int64 64 bits

uint8 8 bits
uint16 16 bits
uint32 32 bits
uint64 64 bits

float16 16 bits
float32 32 bits
float64 64 bits
float96 96 bits,
float128 128 bits

complex64 two 32-bit floats
complex128 two 64-bit floats
complex192 two 96-bit floats
complex256 two 128-bit floats

猜你喜欢

转载自blog.csdn.net/weixin_44311188/article/details/85337039
今日推荐