Commit 12f429bf by BellCodeEditor

save project

parent 6c0fd82a
Showing with 3 additions and 1 deletions
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
...@@ -11,7 +12,8 @@ pen.hideturtle() ...@@ -11,7 +12,8 @@ pen.hideturtle()
penl=turtle.Pen() penl=turtle.Pen()
penl.pencolor("red") penl.pencolor("red")
penl.pensize(5) penl.pensize(5)
len=60 len=screen.textinput("提示""你想要多大的爱心?”)
lovesizel=int(len)
penl.left(45) penl.left(45)
penl.forward(2*len) penl.forward(2*len)
penl.circle(len,180) penl.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