Commit 81b1678e by BellCodeEditor

save project

parent 64f9e7e0
Showing with 8 additions and 5 deletions
...@@ -5,21 +5,24 @@ a=turtle.Pen() ...@@ -5,21 +5,24 @@ a=turtle.Pen()
a.penup() a.penup()
a.goto(100,-100) a.goto(100,-100)
a.pendown() a.pendown()
e=turtle.Screen()
d=int(e.textinput("你想要多大的爱心",'你想要多大的爱心'))
a.write("s\nb",font=("Times",100,"normal")) a.write("s\nb",font=("Times",100,"normal"))
b=turtle.Pen() b=turtle.Pen()
b.fillcolor("red") b.fillcolor("red")
b.begin_fill() b.begin_fill()
b.pensize(10) b.pensize(10)
b.pencolor("red") b.pencolor("red")
b.left(45) b.left(45)
b.forward(100) b.forward(d)
b.circle(50,180) b.circle(d/2,180)
b.right(90) b.right(90)
b.circle(50,180) b.circle(d/2,180)
b.forward(100) b.forward(d)
b.end_fill() b.end_fill()
b.hideturtle() b.hideturtle()
c=turtle.Screen()
c.bgcolor('pink')
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