Python的科学计算包 – Numpy

NumPy系统是Python的一种开源的数值计算扩展。这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结构要高效的多(该结构也可以用来表示矩阵(matrix))。据说NumPy将Python相当于变成一种免费的更强大的MatLab系统。

numpy的下载与安装教程(windows系统):

https://blog.csdn.net/llxlqy/article/details/76967830

numpy常用函数运算:

https://finthon.com/numpy-operation/

https://www.cnblogs.com/TensorSense/p/6795995.html

http://python.jobbole.com/87471/

numpy.asarray(a,dtype=None,order=None):

功能描述:将输入数据(列表的列表,元组的元组,元组的列表等)转换为矩阵形式
a:数组形式的输入数据,包括list,元组的list,元组,元组的元组,元组的list和ndarrays
dtype:数据类型由输入数据推导

numpy中array和asarray的区别:

https://blog.csdn.net/gobsd/article/details/56485177

shape用法:

它的功能是读取矩阵的长度,比如shape[0]就是读取矩阵第一维度的长度。

https://blog.csdn.net/qq_28618765/article/details/78081959

numpy.random:

np.random.rand(d0,d1,...,dn)
返回n维的随机数矩阵。randn为正态分布

https://www.jianshu.com/p/36a4bbb5536e

https://blog.csdn.net/vicdd/article/details/52667709

猜你喜欢

转载自blog.csdn.net/zhyue77yuyi/article/details/88311737