Commit 8eed2268 by BellCodeEditor

auto save

parent 876588d7
Showing with 21 additions and 9 deletions
import turtle
# pen=turtle.Pen()
# pen.write("同学们\n新年快乐\n新的一年,学业有成!",font=("Times",20,"normal"))
# pen.hideturtle()
# turtle.done()
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("提示:","你想画多大的爱心呢?")
pen.penup()
pen.goto(100,-100)
pen.write("同学们\n新年快乐\n新的一年,学业有成!",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen.left(45)
pen.forward(100)
pen.circle(50,180)
\ No newline at end of file
len=int(len)
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -9,7 +9,7 @@ pen.write("同学们\n新年快乐\n新的一年,学业有成!",font=("Times
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.goto(100,-100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
......
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