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

问题描述

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

原因

导入包时候是这样写的

import matplotlib as plt

应该改成

import matplotlib.pyplot as plt

事无巨细

发布了57 篇原创文章 · 获赞 12 · 访问量 7722

猜你喜欢

转载自blog.csdn.net/volunteer1024/article/details/98037211