繁体   English   中英

Python Zelle图形-图像错误

[英]Python Zelle graphics - image error

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

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

但是程序给我一个错误,说:

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

只需将其放在脚本的同一文件夹中或写入文件路径

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM