Commit 37d31e04 by BellCodeEditor

save project

parent 2fe9f7e7
Showing with 20 additions and 3 deletions
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.done
\ No newline at end of file
pen=turtle.Pen()
len=screen.textinput("大小框","输入你想要的爱心大小")
len=int(len)
pen.color("red")
pen.penup()
pen.goto(-100,50)
pen.write("节日快乐!",font=("Times",20,"normal"))
pen.goto(100,-50)
pen.pendown()
pen.begin_fill()
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
pen.end_fill()
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