pyhton-常用包

pyhton-常用包

一、numpy

  numpy是python的一个科学计算的库,提供了矩阵运算的功能,可以用来做矩阵运算,也可以用来做矩阵运算的加速,因为numpy是用C语言写的,所以运算速度很快。

  numpy的特点:

  • numpy在创建时大小固定,不可变,而python的list是可以动态改变大小的。
  • numpy里面的元素都是同一种类型,而python的list里面的元素可以是不同的类型。
  • numyp可以用作矩阵运算,而python的list不能用作矩阵运算。
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2020-2024 nakano-mahiro
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信