Commit c88011ec by BellCodeEditor

auto save

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