报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
修改前:
import matplotlib as plt
plt.figure()
plt.imshow(trainImages[10])
plt.colorbar()
plt.grid(False)
修改为:import matplotlib.pyplot as plt
修改后:
import matplotlib.pyplot as plt
plt.figure()
plt.imshow(trainImages[10])
plt.colorbar()
plt.grid(False)