第14072题 单选
下列NumPy程序运行输出结果为2,横线处应填哪个选项

下列程序的运行结果为2,请问横线处应填入哪一项:

import numpy as np
a = np.arange(0,12).reshape(3,4)
print(____)
A

a.shape()

B

a.shape

C

a.ndim()

D

a.ndim