Commit c88011ec by BellCodeEditor

auto save

parent ee90132e
Showing with 4 additions and 5 deletions
...@@ -10,7 +10,8 @@ pen.goto(100,-100) ...@@ -10,7 +10,8 @@ pen.goto(100,-100)
pen.write("你好啊!\n",font=("Times",30,"normal")) pen.write("你好啊!\n",font=("Times",30,"normal"))
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
len=60 len=screen.textinput("提示","你想要多大的爱心啊? ")
lovesize=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(2*lovesize) pen1.forward(2*lovesize)
pen1.circle(lovesize,180) pen1.circle(lovesize,180)
...@@ -18,6 +19,4 @@ pen1.right(90) ...@@ -18,6 +19,4 @@ pen1.right(90)
pen1.circle(lovesize,180) pen1.circle(lovesize,180)
pen1.forward(2*lovesize) pen1.forward(2*lovesize)
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
len=screen.textinput("提示","你想要多大的爱心啊? 0"")) \ No newline at end of file
lovesize=int(len)
\ 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