python报错:TypeError: ‘module‘ object is not callable的解决方法

在使用python的matplotlib库作图时,报错显示TypeError: ‘module’ object is not callable 这是我原来的代码及报错显示: 后面发现需要在导入时将matplotlib修改为matplotlib.pyplot即可 这是我修改后的代码及结果显示
相关文章
相关标签/搜索