Commit 8fb37435 by BellCodeEditor

save project

parent 03f76a76
Showing with 14 additions and 6 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
z=turtle.Pen() z=turtle.Pen()
pen=turtle.Pen()
n=screen.textinput("画爱心","你像画多大的爱心")
r=int(n)
pen.penup()
pen.goto(100,-100)
z.pensize(10) z.pensize(10)
z.pencolor("red") z.pencolor("red")
#pen=turtle.Pen() pen.write("你个李总,\n不不。",font=("Times",15,"normal"))
#pen.write("你个李总,\n不不。",font=("Times",20,"normal")) pen.hideturtle()
z.left(45) z.left(45)
z.fd(100) z.fd(2*r)
z.circle(50,180) z.circle(r,180)
z.right(90) z.right(90)
z.circle(50,180) z.circle(r,180)
z.fd(100) z.fd(2*r)
z.hideturtle() z.hideturtle()
turtle.done() 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