Commit 4a2976c3 by BellCodeEditor

save project

parent 07858a54
Showing with 21 additions and 0 deletions
import turtle
pen=turtle.Pen()
sreen=turtle.Screen()
sreen.bgcolor("pink")
pen.color("red")
pen.pensize(5)
pen.penup()
pen.goto(100,-100)
pen.write("shj",font=("楷体",30,"normal"))
pen.penup()
pen.goto(0,0)
pen.left(45)
len=int(sreen.textinput("提示","请输入爱心大小:"))
pen.pendown()
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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