![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python菜鸟基础
不求上进的安尘
这个作者很懒,什么都没留下…
展开
-
Python之linspace函数
Python之linspace函数linspace是Matlab中的均分计算指令,用于产生x1,x2之间的N点行线性的矢量。用法:np.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)功能:start : scalar(标量)序列的起始点stop:scalar(标量)序列的最终值,除非“e...翻译 2018-09-18 13:51:39 · 14550 阅读 · 0 评论 -
python数据类型
int():整型,浮点数转整时直接省去小数之后的数字,非四舍五入;float():浮点型,带小数;str():字符型Booleans():布尔type(XXX):查询参数数据类型isinstance(a,b):根据两个参数返回一个布尔类型的值,True代表类型一致,False代表类型不一致,a代表待确定类型的数据,b代表指定一个数据类型。...原创 2018-09-21 15:02:24 · 117 阅读 · 0 评论