运行以下代码” import matplotlib.pyplot as plt”引入plt后,要绘制直方图,需要利用的函数为()。
运行以下代码” import matplotlib.pyplot as plt”引入plt后,要绘制直方图,需要利用的函数为()。
A.plt.bar()
B.plt.pie()
C.plt.plot()
D.plt.hist()
正确答案:plt.hist()
Tags:直方图绘制matplotlib
运行以下代码” import matplotlib.pyplot as plt”引入plt后,要绘制直方图,需要利用的函数为()。
A.plt.bar()
B.plt.pie()
C.plt.plot()
D.plt.hist()
正确答案:plt.hist()
猜你喜欢