Commit 222609ab by BellCodeEditor

save project

parent 07858a54
Showing with 21 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("温馨提示","你想要多大的爱心呀")
pen=turtle.Pen()
pen.hideturtle()
pen.penup()
pen.goto(80,-100)
pen.write("感谢你诺一,是你让我明白turtle的使用方法\n我以后会继续使用turtle模块的\n我送你一句名言\n书山有路勤为径,学海无涯苦作舟",font=("times",10,"normal"))
pen_2=turtle.Pen()
pen_2.hideturtle()
pen_2.pensize(5)
pen_2.pencolor("red")
pen_2.left(45)
pen_2.forward(2*float(len))
pen_2.circle(float(len),180)
pen_2.right(90)
pen_2.circle(float(len),180)
pen_2.forward(2*float(len))
turtle.done()
\ 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