PIL 中有九种不同模式,分别为1,L,P,RGB,RGBA,CMYK,YCbCr,I,F。我主要尝试了1和L。 convert()的三种定义: img.convert(mode) ⇒ image img.
確定! 回上一頁