Commit 129e3136 by BellCodeEditor

save project

parent a15989ca
Showing with 22 additions and 0 deletions
import turtle
penl=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen=turtle.Pen()
pen.penup()
pen.goto(-100,-100)
pen.write("hi",font=("Times",50,"normal"))
len=100
penl.pencolor("red")
penl.pensize(5)
len=int(screen.textinput("大小","输入爱心大小"))
penl.left(45)
penl.forward(2*len)
penl.circle(len,180)
penl.right(90)
penl.circle(len,180)
penl.forward(2*len)
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