ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 低调看直播体育app软件下载 >> Pythonjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播 >> PIL中分离通道发生“AttributeError: NoneType object has no attribute bands”

PIL中分离通道发生“AttributeError: NoneType object has no attribute bands”

来源:网络整理     时间:2015-01-16     关键词:

本篇文章主要介绍了"PIL中分离通道发生“AttributeError: NoneType object has no attribute bands”",主要涉及到方面的内容,对于Pythonjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播感兴趣的同学可以参考一下: 解决方法:这个貌似是属于一个bug把Image.py中的1500行左右的split函数改成如下即可: def split(self):"Split image ...

解决方法:
这个貌似是属于一个bug
把Image.py中的1500行左右的split函数改成如下即可:

def split(self):
    "Split image into bands"
    self.load()
    if self.im.bands == 1:
        ims = [self.copy()]
    else:
        ims = []
        #self.load()
        for i in range(self.im.bands):
            ims.append(self._new(self.im.getband(i)))
    return tuple(ims)

以上就介绍了PIL中分离通道发生“AttributeError: NoneType object has no attribute bands”,包括了方面的内容,希望对Pythonjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播有兴趣的朋友有所帮助。

本文网址链接:http://www.codes51.com/article/detail_106619.html

相关图片

相关文章