Commit 61a17688 by BellCodeEditor

save project

parent ae24077b
Showing with 35 additions and 16 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() #画脸
pen.speed("fast") pen.penup()
pen.hideturtle() pen.goto(0,-200)
screen.bgcolor("black") pen.pendown()
i=0 pen.circle(200)
while i <135: #画左眼
pen.pencolor("pink") pen.penup()
pen.penup() pen.goto(-100,50)
pen.goto(0,0) pen.pendown()
pen.forward(200) pen.fillcolor("blue")
pen.pendown() pen.begin_fill()
pen.circle(100) pen.circle(20)
pen.left(2) pen.end_fill()
i+=1 #画右眼
turtle.done() pen.penup()
\ No newline at end of file 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