Commit 2c9078a4 by BellCodeEditor

save project

parent df6653fa
Showing with 21 additions and 1 deletions
import turtle
screen=turtle.Screen()
lovesize=screen.textinput("爱心大小","你想要多大的爱心")
lovesize=int(lovesize)
screen.bgcolor("pink")
Pen=turtle.Pen()
Pen.wrile=("母亲节快乐",font=("微软雅黑",40,"normal"))
Pen.penup()
Pen.goto(50,-50)
Pen.pendown()
Pen.pencolor("red")
Pen.write("母亲节快乐",font=("微软雅黑",40,"normal"))
Pen.hideturtle()
Penl=turtle.Pen()
Penl.fillcolor("red")
Penl.begin_fill()
Penl.left(45)
Penl.forward(lovesizs*2)
Penl.circle(lovesize,180)
Penl.right(90)
Penl.circle(lovesize,180)
Penl.forward(lovesize*2)
Penl.end_fill()
Pen.hideturtle()
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