Commit bb604dc4 by BellCodeEditor

save project

parent c0a7c155
Showing with 7 additions and 4 deletions
......@@ -3,6 +3,8 @@ import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
size=screen.textinput("画爱心","你想要多大的爱心")
size=int(size)
pen.penup()
pen.goto(100,-100)
pen.write("Hi\nHow are you",font=("Times",20,"normal"))
......@@ -12,9 +14,9 @@ pen1 =turtle.Pen()
pen1.pensize(3)
pen1.pencolor("pink")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(size)
pen1.circle(size/2,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(size/2,180)
pen1.forward(size)
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