Commit 922bf716 by BellCodeEditor

save project

parent 89a7ac43
Showing with 7 additions and 5 deletions
...@@ -2,22 +2,23 @@ ...@@ -2,22 +2,23 @@
import turtle import turtle
pen1=turtle.Pen() pen1=turtle.Pen()
pen=turtle.Pen() pen=turtle.Pen()
a=120
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("yellow") screen.bgcolor("yellow")
pen1.penup() pen1.penup()
pen1.goto(150,-150) pen1.goto(150,-150)
pen1.write("祝大家\n圣诞快乐!",font=("Times",30,"normal")) pen1.write("提前大家\n元旦快乐!",font=("Times",30,"normal"))
pen1.hideturtle() pen1.hideturtle()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(a)
pen.circle(50,180) pen.circle(0.5*a,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(0.5*a,180)
pen.forward(100) pen.forward(a)
pen.end_fill() pen.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done() 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