import turtle
turtle.setup(1300,1300,0,0)
turtle.color('yellow')
turtle.bgcolor('black')
turtle.pensize(30)
def mygoto(x,y):
turtle.up()
turtle.goto(x,y)
turtle.down()
mygoto(-150,-10)
turtle.begin_fill()
turtle.forward(100)
turtle.right(100)
turtle.end_fill()
mygoto(-55,-10)
turtle.begin_fill()
turtle.forward(100)
turtle.left(100)
turtle.end_fill()
mygoto(-70,-106)
turtle.begin_fill()
turtle.forward(95)
turtle.end_fill()
turtle.up()
turtle.goto(20,15)
turtle.down()
turtle.forward(150)
turtle.up()
turtle.goto(95,15)
turtle.down()
turtle.left(90)
turtle.forward(-110)
turtle.up()
turtle.goto(95,-95)
turtle.down()
turtle.left(0)
turtle.circle(50,-75)
turtle.up()
turtle.goto(300,50)
turtle.down()
turtle.left(230)
turtle.forward(150)
turtle.up()
turtle.goto(300,50)
turtle.down()
turtle.right(120)
turtle.forward(-160)
turtle.up()
turtle.goto(450,50)
turtle.down()
turtle.left(120)
turtle.forward(146)
turtle.up()
turtle.goto(450,50)
turtle.down()
turtle.right(-60)
turtle.forward(150)
turtle.hideturtle()
turtle.done()
Python打自己的名字
最新推荐文章于 2024-04-07 16:47:50 发布