Commit 38a8b27d by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
Pen=turtle.Pen()
Pen.penup()
Pen.goto(100,-100)
Pen.write("叫爸爸",font=("Times,30,normal"))
Pen.hideturtle()
len=screen.textinput("姓名框","你的名字是:")
len=float(len)
Pen1=turtle.Pen()
Pen1.pensize(5)
Pen1.pencolor("red")
Pen1.left(45)
Pen1.forward(2*len)
Pen1.circle(len,180)
Pen1.right(90)
Pen1.circle(len,180)
Pen1.forward(2*len)
Pen1.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