import numpy as np
a = np.arange(1, 10)
print(a)
print(a+1)
a = np.array([(10,20,30),
(40,50,60),
(70,80,90)])
print(a + 1) # 逐元素相加
v = [1,2,3] # 行向量
print(a + v) # 逐行相加
v = [[1],[2],[3]] # 列向量
print(a + v) # 逐列相加