Commit dc57d91d by BellCodeEditor

save project

parent 07858a54
Showing with 21 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("提示","你的爱心有多大")
lovesize=int(len)
pen.fillcolor("pink")
pen.begin_fill()
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
pen.penup()
pen.goto(100,0)
pen.end_fill()
pen.write("生日快乐!",font=("Times",13,"normal"))
pen.hideturtle()
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