AttributeError: module 'matplotlib' has no attribute 'plot'

问题描述

AttributeError: module 'matplotlib' has no attribute 'plot'

 

原因

导入包时候是这样写的

import matplotlib as plt

应该改成

import matplotlib.pyplot as plt

 

事无巨细

发布了59 篇原创文章 · 获赞 12 · 访问量 9648
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章