Commit 8eed2268 by BellCodeEditor

auto save

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