數學 意義為v 在s 上的投影,物理意義為對特定方向"作功"。 ... as np v = np.array([2, 1]) s = np.array([-3, 2]) d = v @ s # 或d = v.dot(s) print(d) >> -4.
確定! 回上一頁