#範例2-4:矩陣的純量相乘 import numpy as np A = np.array([ [2, -3, -4, 0], [-3, 1, -1, 5], [4, 0, -6, -7] ]) k=3 print('k*A=\n',k*A)