Commit 2405219a by BellCodeEditor

save project

parent e4bb3641
Showing with 8 additions and 5 deletions
import turtle
screen=turtle.Screen()
screen=turt le.Screen()
len=screen.textinput("提示","你想要多大的爱心")
lovesise=int(len)
screen.bgcolor("pink")
pen=turtle.Pen()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.forward(2*lovesise)
pen.circle(lovesise,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(lovesise,180)
pen.forward(2*lovesise)
pen.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