python下载图片并查看图片宽度和高度
from PIL import Image
from cStringIO import StringIO
data = StringIO(urlopen(img).read())
im = Image.open(data)
x,y = im.size
from cStringIO import StringIO
data = StringIO(urlopen(img).read())
im = Image.open(data)
x,y = im.size