print(Image.open('0.png'))
输出结果:
<PIL.PngImagePlugin.PngImageFile image mode=RGBA size=317x25 at 0x1F5329FDA20>
print(Image.open('0.png').convert('L'))
输出结果:
<PIL.Image.Image image mode=L size=317x25 at 0x22BBD5F2518>
print(Image.open('0.png'))
输出结果:
<PIL.PngImagePlugin.PngImageFile image mode=RGBA size=317x25 at 0x1F5329FDA20>
print(Image.open('0.png').convert('L'))
输出结果:
<PIL.Image.Image image mode=L size=317x25 at 0x22BBD5F2518>