Commit 8ce519bb by BellCodeEditor

save project

parent a0be2014
Showing with 5 additions and 3 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.goto(200,-200)
pen.write("你好",font=("Times",10,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
len=60
len=screen.textinput("提示","你想要多大的爱心")
len=float(len)
pen1.pensize(10)
pen1.pencolor("red")
pen1.color("red")
......@@ -17,6 +20,5 @@ pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.end_fill()
screen=turtle.Screen()
screen.bgcolor("pink")
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