numpy.ndarray.__array__

方法

ndarray.__array__([dtype, ]/) → reference if type unchanged, copy otherwise.

如果未给定dtype,则返回对self的新引用;如果dtype与数组的当前dtype不同,则返回所提供数据类型的新数组。