名字白璐璐,请帮忙算坐标,谢谢
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()
可以这样画,对于璐字,同样方法取坐标画出。参考代码:
import turtle
def run(angle, lenth):
turtle.seth(angle)
turtle.fd(lenth)
def change(x, y):
turtle.penup()
turtle.goto(x, y)
turtle.pendown()
turtle.pensize(10)
turtle.pencolor("purple")
turtle.setup(800, 400, 200, 200)
change(-100,160)
run(-130,50)
change(-130,120)
run(0,80)
run(-90,120)
run(-180,80)
run(90,120)
change(-130,60)
run(0,80)
turtle.mainloop()
这个坐标要用ps一点点取,太好时间了,你追加筹金看看有没有人帮你弄一下吧.目前网上好像没有什么快捷取坐标的方式,你可以试试直接画write('白璐璐')的方式