美文网首页
python2 函数

python2 函数

作者: ATHAS | 来源:发表于2016-11-27 20:59 被阅读0次

1. max()

2. round(被处理的数,截取到小数点后第几位),可以只有一个参数

引入包的三种方法

1、import numpy #引入整个包所有内容

调用: numpy.array()

2、import numpy as np  #觉得numpy太长了,给个别称

调用: ny.array()

3、from numpy import array   # 只引入array 

2和3很难看出array是不是用的numpy的函数,所以标准方式是11、

使用: array

相关文章

网友评论

      本文标题:python2 函数

      本文链接:https://www.haomeiwen.com/subject/yjpnpttx.html