我使用python2.6,今天早上出了問題。它說'模塊'沒有屬性'圖像'。這是我的輸入。爲什麼我第一次不能使用PIL.Image?Python PIL沒有屬性'圖像'
>>> import PIL
>>> PIL.Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Image'
>>> from PIL import Image
>>> Image
<module 'PIL.Image' from '/usr/lib/python2.6/dist-packages/PIL/Image.pyc'>
>>> PIL.Image
<module 'PIL.Image' from '/usr/lib/python2.6/dist-packages/PIL/Image.pyc'>