Commit 2e529c21 by BellCodeEditor

save project

parent ff8a18c8
Showing with 12 additions and 4 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light green")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("祝你丫生日快乐",font=("Time",30,"normal"))
pen1.hideturtle()
t=turtle.Pen() t=turtle.Pen()
len=10
t.pencolor("red") t.pencolor("red")
t.fillcolor("red") t.fillcolor("red")
t.pensize(5) t.pensize(5)
t.begin_fill() t.begin_fill()
t.left(45) t.left(45)
t.forward(200) t.forward(2*len)
t.circle(100,180) t.circle(len,180)
t.right(90) t.right(90)
t.circle(100,180) t.circle(len,180)
t.forward(200) t.forward(2*len)
t.end_fill() t.end_fill()
turtle.done() 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