diagonal 上下三角矩陣



np.triu(), np.tril()回傳上下三角矩陣

Example Code
Note and Comments
result