解决AttributeError: module ‘matplotlib‘ has no attribute ‘plot‘
经过查找,发现导入包时写的方式不对。我是这样写的import matplotlib as plt改成这样就ok了import matplotlib.pyplot as plt
![](https://csdnimg.cn/release/devpress/public/img/ic-book.4f347164.png)
一键AI生成摘要,助你高效阅读
问答
·
经过查找,发现导入包时写的方式不对。
我是这样写的
import matplotlib as plt
改成这样就ok了
import matplotlib.pyplot as plt
更多推荐
所有评论(0)