Commit 7fd85141 by BellCodeEditor

save project

parent c629bedc
Showing with 10 additions and 23 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
len=screen.textinput("tips","set your lovesize")
lovesize=int(len)
pen=turtle.Pen()
pen.color("red")
i=screen.textinput("tips","?")
size=int(i)
pen.penup()
pen.goto(100,-100)
pen.write("abaababababaab\ncdcdcdcdccd\ncdcdcdc",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("yellow")
pen1.pensize(6)
pen1.fillcolor("yellow")
pen1.begin_fill()
pen1.shape("turtle")
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.pencolor("black")
pen1.end_fill()
pen1.hideturtle()
screen=turtle.Screen()
screen.bgcolor("light blue")
pen.circle(size,60)
pen.pendown()
pen.circle(size,360,3)
pen.penup()
pen.circle(size,60)
pen.pendown()
pen.circle(size,360,3)
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