标签:style 计算 cto div color import numpy 科学 col
1 import numpy as np 2 vector = numpy.array([5,10,15,20]) 3 matrix = numpy.array([[5,10,15],[20,25,30],[35,40,45]]) 4 print(vector) 5 print(matrix) 6 print(vector.shape) 7 vector = numpy.array([5,10,15,20]) 8 matrix = numpy.array([[5,10,15],[20,25,30],[35,40,45]]) 9 print(vector) 10 print(matrix) 11 print(vector.shape) 12 print(np.ones((2,3,4),dtype = np.int32)) 13 14 print(np.linspace(0,2,100))
标签:style 计算 cto div color import numpy 科学 col
原文地址:http://www.cnblogs.com/wangmengzhu/p/7900411.html