Commit e7214c9e by BellCodeEditor

save project

parent a50ceeec
Showing with 25 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的姓名是:")
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("爱心","你的爱心大小是:")
len=int(len)
Pen=turtle.Pen()
Pen.write("你好.\n",font=("Times",30,"normal"))
Pen.hideturtle()
Pen1=turtle.Pen()
Pen1.pendown()
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()
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