摘要:
将数组或者矩阵转换成列表,如下: >>> from numpy import *>>> a1 = [[1,2,3],[4,5,6]] #列表>>> a2 = array(a1) #数组>>> a2array([[1, 2, 3], [4, 5, 6]])>>> a3 = mat(a1) #矩阵>>> 阅读全文
posted @ 2018-04-17 09:00
一只天真的小蜗牛
阅读(626)
评论(0)
推荐(0)
摘要:
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None) 在指定的间隔内返回均匀间隔的数字。 返回num均匀分布的样本,在[start, stop]。 这个区间的端点可以任意的被排除在外。 start 阅读全文
posted @ 2018-04-17 08:56
一只天真的小蜗牛
阅读(1036)
评论(0)
推荐(0)

浙公网安备 33010602011771号