导入包错误
import numpy as npfrom matplotlib.pyplot import Image as plt
x = np.arange(0, 4 * np.pi, 0.1)
y = np.sin(x)
plt.plot(x, y)
plt.xlabel('x')
plt.ylabel('y')
plt.grid()
plt.show()
AttributeError: module 'PIL.Image' has no attribute 'Image' from matplotlib import pyplot as plt
页:
[1]