Commit 2cadf7f8 by BellCodeEditor

save project

parent c5698cd0
Showing with 23 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
a=int(screen.textinput("爱心(写数字)","你想要什么爱心?"))
pen.write("欢迎你\n--悟空",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
screen.bgcolor("blue")
pen1.penup()
pen1.goto(-200,200)
pen1.fillcolor("red")
pen1.begin_fill()
pen1.color("red")
pen1.right(-135)
pen1.circle(a/2,180)
pen1.forward(a)
pen1.right(-90)
pen1.forward(a)
pen1.circle(a/2,180)
pen1.end_fill()
pen1.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