当我运行此代码时,我得到空白屏幕。
screen=turtle.Screen()
print(screen.bgpic())
screen.setup(900, 650)
screen.bgpic("map.gif")
input()
发布下面的图片
最佳答案
为什么需要 input() ?你可以像这样运行,它应该显示:
import turtle
screen = turtle.Screen()
screen.setup(900, 650)
screen.bgpic("map.gif")
turtle.exitonclick()
关于python - .gif 在 python 中没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58969412/