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中正常

 

posted @ 2018-03-21 17:27  暮雪超霸  阅读(1324)  评论(0编辑  收藏  举报