把import matplotlib as plt
改为import matplotlib.pyplot as plt就可以了
AttributeError: module ‘matplotlib‘ has no attribute ‘scatter‘
最新推荐文章于 2023-06-04 15:56:41 发布
把import matplotlib as plt
改为import matplotlib.pyplot as plt就可以了