我无法在python乌龟上获得图片

时间:2019-02-01 15:25:03

标签: python turtle-graphics

我正在尝试在python上下载图像,但是它不起作用。我的桌面上有一个名为robotship.png的图像

import turtle

screen = turtle.Screen()

image = "rocketship.png"

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

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

1 个答案:

答案 0 :(得分:0)

将图像转换为gif,然后重试,我发现此链接很有用:

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