为什么我不能在python中添加这个.gif海龟形状?

2024-10-01 00:20:58 发布

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

pencil = "/Users/h205p6/Desktop/pencill.gif"
turtle.register_shape(pencil)
turtle.add_shape(pencil)
turtle.shape(pencil)

当我试图运行这段代码时,我发现“pyimage1”不存在。在

我需要帮助!在

如果我把乌龟。添加形状(铅笔)我仍然得到同样的错误代码!在


Tags: 代码registeraddgifusers形状shapedesktop