gpt4 book ai didi

python - 使用 PIL 1.1.7 的问题

转载 作者:太空宇宙 更新时间:2023-11-03 14:35:11 25 4
gpt4 key购买 nike

琐碎的

import Image
im = Image.OPEN('C:\abc.bmp')

导致以下异常

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
im = Image.OPEN('C:\Documents and Settings\umair.ahmed\My Documents\My Pictures\avanza.bmp')
TypeError: 'dict' object is not callable

不确定我是否遗漏了什么,请帮忙。

最佳答案

使用:

Image.open()

区分大小写。

关于python - 使用 PIL 1.1.7 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2137953/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com