Commit f6b4d51c by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
import turtle
screen=turtle.Screen()
led=int(screen.textinput("框","多大:"))
screen=turtle.Screen()
screen.bgcolor("pink")
Pen=turtle.Pen()
Pen.pencolor("red")
Pen.penup()
Pen.goto(-100,0)
Pen.write("快乐",font=("Times",10,"normal"))
Pen.hideturtle()
Pen=turtle.Pen()
Pen.pencolor("red")
Pen.left(45)
Pen.forward(led*4)
Pen.circle(led*2,180)
Pen.right(90)
Pen.circle(led*2,180)
Pen.forward(led*4)
Pen.hideturtle()
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