Commit 48dadc5d by BellCodeEditor

save project

parent 07858a54
Showing with 31 additions and 0 deletions
len=int(input("请输入边长:"))
import turtle
a=turtle.Screen()
a.bgcolor("light blue")
f=turtle.Pen()
f.penup()
f.goto(100,-100)
f.write("儿童节快乐!",font=("Times",30,"normal"))
f.hideturtle()
j=turtle.Pen()
j.penup()
j.goto(0,-100)
j.pendown()
j.pencolor("red")
j.pensize(5)
j.left(45)
j.forward(len*2)
j.circle(len,180)
j.right(90)
j.circle(len,180)
j.forward(len*2)
j.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