小编Lir*_*avi的帖子

将图像添加到龟屏幕

如何将图像添加到我的Turtle Screen乌龟图形中?

每当我使用该功能时,我都会addshape遇到错误.

龟图形有任何其他方式加载/导入图像?

例如:

import turtle

screen = turtle.Screen()

image = r"C:\Users\myUser\Desktop\Python\rocketship.png"

screen.addshape(image)
turtle.shape(image)
Run Code Online (Sandbox Code Playgroud)

python image turtle-graphics python-2.7

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

image ×1

python ×1

python-2.7 ×1

turtle-graphics ×1