小华想要绘制一个表示某个城市一年内每个月的平均降雨量的折线图,他使用了以下的代码:
import matplotlib.pyplot as plt months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] rainfall = [50, 40, 60, 80, 100, 120, 140, 130, 110, 90, 70, 60] plt.plot(months, rainfall) plt.show()
运行上面这段代码后,会显示一个条形图。( )