Commit 8058ccb5 by BellCodeEditor

save project

parent 50277a15
Showing with 15 additions and 8 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
#pen.write("回乡偶书\n【唐】贺知章\n少小离家老大回,\n乡音无改鬓毛衰,\n儿童相见不相识,\n笑问客从何处来。",font=("Times",30,"normal"))
#pen.hideturtle()
#turtle.done()
pen.penup()
pen.goto(-100,0)
pen.write("祝你生日快乐!",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.hideturtle()
pen.circle(len,180)
pen.forward(2*len)
turtle.done()
\ No newline at end of file
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