卡塔尔世界杯冠军_女子乒乓球世界杯 - ecmipu.com

数组创建例程#

array(object[, dtype, copy, order, subok, ...])

创建数组。

asarray(a[, dtype, order, device, copy, like])

将输入转换为数组。

asanyarray(a[, dtype, order, device, copy, like])

将输入转换为 ndarray,但将 ndarray 的子类原样传递。

ascontiguousarray(a[, dtype, like])

返回一个内存中连续的数组(ndim >= 1)(C 序)。

asmatrix(data[, dtype])

将输入解释为矩阵。

astype(x, dtype, /, *[, copy, device])

将数组复制到指定的数据类型。

copy(a[, order, subok])

返回给定对象的数组副本。

frombuffer(buffer[, dtype, count, offset, like])

将缓冲区解释为一维数组。

from_dlpack(x, /, *[, device, copy])

从实现 __dlpack__ 协议的对象创建 NumPy 数组。

fromfile(file[, dtype, count, sep, offset, like])

从文本或二进制文件中构造数组。

fromfunction(function, shape, *[, dtype, like])

通过对每个坐标执行函数来构造数组。

fromiter(iter, dtype[, count, like])

从可迭代对象创建新的 1 维数组。

fromstring(string[, dtype, count, like])

从字符串中的文本数据初始化的新 1D 数组。

loadtxt(fname[, dtype, comments, delimiter, ...])

从文本文件加载数据。

Copyright © 2022 卡塔尔世界杯冠军_女子乒乓球世界杯 - ecmipu.com All Rights Reserved.