这个问题可能很容易回答,但我在 numpy 文档中找不到明显的答案。
初始化二进制 numpy 数组时要选择的 dtype 是什么,如下所示:
array = np.zeros(8, dtype=np.int)
python variables numpy declaration
declaration ×1
numpy ×1
python ×1
variables ×1