Commit 76b839d2 by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
lens=screen.textinput("爱心","你想要的爱心有多大?")
len=float(lens)
pen.pencolor("dark blue")
pen.penup()
pen.goto(100,-100)
pen.pendown()
pen.write("hello,world!",font=("宋体",30))
pe=turtle.Pen()
pe.pensize(5)
pe.pencolor("red")
pe.left(45)
pe.forward(len)
pe.circle(2*len,180)
pe.right(90)
pe.circle(len,180)
pe.forward(len)
pe.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