python图片的读取保存
#coding:utf-8 from PIL import Image import matplotlib.pyplot as plt img=Image.open("F:\\Upan\\源代码\\MR\\源码\\14\\shop\\admin\\upimages\\8.jpg") plt.figure("8") plt.imshow(img) plt.show()
img.save("f:\\111111.jpg")
在python3中,出错在verbose=matplotlib.verbose这里 因为在Python3中matplotlib中是Verbose 在2.7中正常
一万年太久,只争朝夕!