a = np.array([1, 2, 3, 4]) ... Array multiplication is not matrix multiplication: ... a = np.triu(np.ones((3, 3)), 1) # see help(np.triu).
確定! 回上一頁