当前位置:   article > 正文

module 'PIL' has no attribute 'image'

module 'pil' has no attribute 'image

源代码

import PIL
PIL.image.open('*.png')
  • 1
  • 2

报错 module ‘PIL’ has no attribute ‘image’
改为如下的使用方式

from PIL import Image
a=Image.open('*.png')
a.show()
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号