Commit 6d600457 by BellCodeEditor

save project

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