您的位置:首页 > 编程语言 > Python开发

python 笔记 在windows下的程序 获取图片并显示出来

2015-01-12 21:18 281 查看
print("start")
import io
import Image
import urllib
import pylab
print("start reading")
conn = urllib.urlopen("http://su.bdimg.com/static/superplus/img/logo_white_ee663702.png")
r=conn.read()
print("finished")
data_stream = io.BytesIO(r)
I=Image.open(data_stream)
#I=I.convert('L')
print(I)
pylab.imshow(I)
pylab.show()


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: