查看numpy的类型

查看一个变量的类型:type(img)

查看array中的数据值的类型:img.dtype

查看array的形状:img.shape

原文地址:https://www.cnblogs.com/ymjyqsx/p/8991192.html