numpy创建已有的数组 NumPy 创建数组 numpy 创建一维数组 w1 = np.array( [1,2,3] ) 创建二维数组 w2 = np.array( [ [1, 2, 3], [4, 5, 6], [7, 8, 9]] )