名字白璐璐,请帮忙算坐标,谢谢
import turtle
def run(angle, lenth):
turtle.seth(angle)
turtle.fd(lenth)
def change(x, y):
turtle.penup()
turtle.goto(x, y)
turtle.pendown()
def init():
turtle.pensize(10)
turtle.pencolor("purple")
turtle.setup(800, 400, 200, 200)
init()
写字直接用write就行了,如下:
import turtle
t= turtle.Turtle()
t.write("霜叶红于二月花", font=("微软雅黑", 20, "normal")) #fonttype有normal, bold, italic, underline
turtle.mainloop()