Commit c39f02c7 by BellCodeEditor

save project

parent 07858a54
Showing with 63 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("yellow")
b=screen.textinput("标题","你要多大的爱心")
a=int(b)
p=turtle.Pen()
p.penup()#抬笔
p.goto(100,-100)
p.write("你好\n 我是你爸爸",font=("Times",28,"normal"))
p.hideturtle()
p1=turtle.Pen()
p1.pencolor("red")
p1.pensize(20)
p1.left(45)
p1.forward(2*a)
p1.circle(a,180)
p1.right(90)
p1.circle(a,180)
p1.forward(2*a)
p1.hideturtle()
turtle.done()
# screen=turtle.Screen()
# screen.bgcolor("light yellow")
# p=turtle.Pen()
# p.penup()
# p.goto(100,-100)
# p.write("你好,SB\n 我是你爸爸",font=("Times",28,"normal"))
# p.hideturtle()
# p1=turtle.Pen()
# p1.pencolor("red")
# b=80
# p1.pensize(20)
# p1.left(45)
# p1.forward(2*b)
# p1.circle(b,180)
# p1.right(90)
# p1.circle(b,180)
# p1.forward(2*b)
# p1.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