1
使用mac,我试图将我的程序背景设置为我下载的图像,我将图像称为“ChristmasBackground.jpg”并将其保存到我的文档中。使用Zelle图形,这是我写的:Python Zelle图形 - 图像错误
XmasBack = Image(Point(600,100),"ChristmasBackground.jpg")
XmasBack.draw(win)
但程序是给我一个错误说:
couldn't open "ChristmasBackground.jpg": no such file or directory
当我把它放在python应用程序文件夹中时,仍然给我同样的错误。 –
它是PIL库吗? @MostafaMohsen – Veltro
我怎样才能访问PIL? –