代码示例如下:
from Tkinter import *
from turtle import *
import turtle forward(100)
ts = turtle.getscreen() ts.getcanvas().postscript(file="duck.eps") #.eps文件即postscript脚本
*链接:https://*.com/questions/4071633/python-turtle-module-saving-an-image
代码示例如下:
from Tkinter import *
from turtle import *
import turtle forward(100)
ts = turtle.getscreen() ts.getcanvas().postscript(file="duck.eps") #.eps文件即postscript脚本
*链接:https://*.com/questions/4071633/python-turtle-module-saving-an-image