Commit 61a17688 by BellCodeEditor

save project

parent ae24077b
Showing with 34 additions and 14 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed("fast")
pen.hideturtle()
screen.bgcolor("black")
i=0
while i <135:
pen.pencolor("pink")
pen.penup()
pen.goto(0,0)
pen.forward(200)
pen.pendown()
pen.circle(100)
pen.left(2)
i+=1
#画脸
pen.penup()
pen.goto(0,-200)
pen.pendown()
pen.circle(200)
#画左眼
pen.penup()
pen.goto(-100,50)
pen.pendown()
pen.fillcolor("blue")
pen.begin_fill()
pen.circle(20)
pen.end_fill()
#画右眼
pen.penup()
pen.goto(100,50)
pen.pendown()
pen.fillcolor("blue")
pen.begin_fill()
pen.circle(20)
pen.end_fill()
#画鼻子
pen.penup()
pen.goto(0,50)
pen.pendown()
pen.circle(-50,steps=3)
#画嘴巴
pen.penup()
pen.goto(-150,-70)
pen.pendown()
pen.goto(0,-170)
pen.goto(150,-70)
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment