python報錯:TypeError: ‘module‘ object is not callable的解決方法

在使用python的matplotlib庫作圖時,報錯顯示TypeError: ‘module’ object is not callable 這是我原來的代碼及報錯顯示: 後面發現需要在導入時將matplotlib修改爲matplotlib.pyplot即可 這是我修改後的代碼及結果顯示
相關文章
相關標籤/搜索