單項選擇題

生成對角矩陣的命令是()

A.numpy.eye(3)
B.numpy.diag([1,2,3])
C.numpy.ones((3,3))
D.numpy.empty((3,3))

微信掃碼免費搜題