1、问题描述
AttributeError: module 'matplotlib' has no attribute 'plot'
2、原因分析
导入包时候是这样写的:
import matplotlib as plt
应该改成:
import matplotlib.pyplot as plt
AttributeError: module 'matplotlib' has no attribute 'plot'
导入包时候是这样写的:
import matplotlib as plt
应该改成:
import matplotlib.pyplot as plt