单项选择题

生成对角矩阵的命令是()

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