问题
I am new to Python turtle module, I wrote a very easy code, like,
from turtle import *
import turtle
forward(100)
right(90)
forward(200)
circle(10)
ts = turtle.getscreen()
turtle.getcanvas().postscript(file = "duck.eps")
I got a .eps
image, it looks well, but what I want is an animated image in .gif
. However, when I try to say,
turtle.getcanvas().postscript(file = "duck.gif")
I got the duck.gif, but I cannot open it !!
What should I do now?
来源:https://stackoverflow.com/questions/40650099/how-to-save-animated-gif-images-drawing-in-python-turtle-module