Commit f20c008c by BellCodeEditor

save project

parent 95e66944
Showing with 9 additions and 6 deletions
import turtle
turtle.Screen()
screen=turtle.Screen()
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好呀悟空",font=("Times",30,"normal"))
pen.write("你好呀细勾",font=("Times",30,"normal"))
pen.hideturtle()
len=screen.textinput("爱心","你要多大的爱心?")
a=int(len)
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(a,180)
pen1.forward(2*a)
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