Commit 58b52a60 by BellCodeEditor

save project

parent 95b5d05b
Showing with 12 additions and 9 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("blue")
len=screen.textinput("大小","想要多大的爱心")
len=int(len)
pen = turtle.Pen()
pen.write("i\nikun",font=("Times",20,"normal"))
pen.penup()
pen.goto(-200,-200)
pen.write(" 厉不厉害你坤哥 \n ikun \n 鲲鲲 ",font=("Times",30,"normal"))
pen5=turtle.Pen()
pen5.pencolor("green")
pen5.pencolor("red")
pen5.pensize(50)
#爱心
pen5.left(45)
pen5.forward(100)
pen5.circle(50,180)
pen5.forward(2*len)
pen5.circle(len,180)
pen5.right(90)
pen5.circle(50,180)
pen5.forward(100)
pen5.circle(len,180)
pen5.forward(2*len)
pen5.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