我不能让Python的龟图片

问题描述 投票:0回答:1

我尝试下载一个python的形象,但它无法正常工作。我有我的桌面上名为rocketship.png一个图像

import turtle

screen = turtle.Screen()

image = "rocketship.png"

screen.addshape(image)
turtle.shape(image)

它应该显示火箭飞船的图像。

python turtle-graphics
1个回答
0
投票

图像转换为GIF,然后再试一次,我发现这个链接有用:

https://image.online-convert.com/convert-to-gif

© www.soinside.com 2019 - 2024. All rights reserved.