📜  什么是 numpy - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:43.967000             🧑  作者: Mango

代码示例2
NumPy is a library for the Python programming language, adding support for 
large, multi-dimensional arrays and matrices, along with a large collection 
of high-level mathematical functions to operate on arrays.

NumPy can be used to perform a wide variety of mathematical operations on 
arrays. It adds powerful data structures to Python that guarantee efficient 
calculations with arrays and matrices and it supplies an enormous library of 
high-level mathematical functions that operate on these arrays and matrices.

You can install NumPy in your device by:
pip install numpy

and import in your python program as:
import numpy as np