Commit 4bb91974 by BellCodeEditor

save project

parent 5dc1ca4f
Showing with 11 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~turtle() # 利用write()帮助悟空给诺依回信吧~turtle()
import turtle import turtle
a=120
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("祝大家\n圣诞节快乐",font=("Time",20,"normal")) pen.write("提前祝大家\n元旦快乐",font=("Time",20,"normal"))
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
pen1.fillcolor("red") pen1.fillcolor("red")
pen1.begin_fill() pen1.begin_fill()
pen1.pensize(10) pen1.pensize(10)
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(a)
pen1.circle(50,180) pen1.circle(a/2,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(a/2,180)
pen1.forward(a)
pen1.end_fill() pen1.end_fill()
pen1.forward(100)
pen.hideturtle() pen.hideturtle()
pen1.hideturtle() pen1.hideturtle()
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