📅  最后修改于: 2022-03-11 14:46:12.778000             🧑  作者: Mango
代码示例1
#Change the value 3 to the size of the identity matrix
>>>np.identity(3)
array([[1., 0., 0.],
[0., 1., 0.],
[0., 0., 1.]])