Commit 01831327 by BellCodeEditor

save project

parent 15929fc3
Showing with 3 additions and 1 deletions
...@@ -3,6 +3,7 @@ import turtle ...@@ -3,6 +3,7 @@ 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(0,0) # pen.goto(0,0)
# pen.write("hello,我叫徐俊亨!",font=("Times",30,"normal")) # pen.write("hello,我叫徐俊亨!",font=("Times",30,"normal"))
...@@ -19,7 +20,8 @@ pen=turtle.Pen() ...@@ -19,7 +20,8 @@ pen=turtle.Pen()
# pen1.forward(100) # pen1.forward(100)
# pen1.hideturtle() # pen1.hideturtle()
# turtle.done() # turtle.done()
len=60 len=screen.textinput("提示","请问您想要多大的爱心?:")
len=int(len)
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.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