Commit c68335df by BellCodeEditor

save project

parent f9f36b65
Showing with 3 additions and 2 deletions
import turtle
screen=turtle.Screen()
len=60
screen.bgcolor("green")
len=turtle.textinput("爱心大小","请输入你想要的爱心大小")
len=int(len)
len=float(len)
pen=turtle.Pen()
pen.penup()
pen.goto(0,-100)
......@@ -12,7 +14,6 @@ pen1.begin_fill()
pen1.fillcolor("red")
pen1.pensize(5)
pen1.pencolor("pink")
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
......
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