Python-Zelle图形imag

2024-04-19 21:38:28 发布

您现在位置:Python中文网/ 问答频道 /正文

使用mac,我试图将程序的背景设置为我下载的图像,我称之为“图像”圣诞节背景.jpg“并保存到我的文档中。使用Zelle图形,这是我写的:

XmasBack = Image(Point(600,100),"ChristmasBackground.jpg")
XmasBack.draw(win)

但是程序给了我一个错误:

couldn't open "ChristmasBackground.jpg": no such file or directory

Tags: 文档图像image程序图形mac错误win