# -*- coding: UTF-8 -*-
from skimage import io
import matplotlib.pyplot as plt
img=io.imread('d:/q.png')
size = img.shape
print 'size of image', size
plt.figure(0)
plt.imshow(img)
print 'Good bye'
# the program will stop when comes to plt.show(), and plot
# the code after plt.show() will not be executed, until we close the plot windows
# so, I put plt.show() at last
plt.show()
运行结果: