NumPy数组 是通常的 Python 列表的扩展。...最基本的方法是将序列传递给 NumPy 的array()函数;你可以传递任何序列,而不仅仅是常见的列表(list)数据类型。对数组进行索引就像列表或任何其他 Python 序列一样。..., out, where, …])按元素计算x1和x2的真值。...logical_or(x1, x2, /[, out, where, casting, …])按元素计算x1或x2的真值。...logical_not(x, /[, out, where, casting, …])计算非x元素的真值。