Commit db602045 by BellCodeEditor

save project

parent 7bdf6b2b
Showing with 6 additions and 4 deletions
import turtle
scree=turtle.Screen()
len=scree.textinput("提示","你想要多大的爱心啊?")
lovesize=int(len)
scree.bgcolor("light blue")
pen=turtle.Pen()
pen.write("你好呀!",font=("Times",30,"normal"))
......@@ -7,10 +9,10 @@ pen.penup()
pen.goto(-100,0)
pen.left(45)
pen.pendown()
pen.forward(100)
pen.circle(50,180)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(lovesize,180)
pen.forward(2*len)
pen.hideturtle()
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