1.确定正常安装了matplotlib 2.import matplotlib.pyplot as plt https://blog.csdn.net/qq_42273575/article/details/88118404