Commit bf7ad97f by BellCodeEditor

save project

parent 07858a54
Showing with 19 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧!
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen=turtle.Screen()
length=int(screen.textinput("输入""要多大的爱新?"))
len=100
pen.write("aaaaaaaaa\nbbbbbbbb\n",font=("times",20,"normal"))
pen.pensize(2)
pen.color("red")
pen.lt(45)
pen.fd(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.fd(len*2)
screen.bgcolor("lightblue")
pen.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