Commit 41d7f8e3 by BellCodeEditor

auto save

parent 72005817
Showing with 23 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
a = screen.textinput("爱心尺寸","请输入您想要的尺寸")
a = int(a)
pen = turtle.Pen()
pen.penup()
pen.goto(0,-100)
pen.write("你好呀,\n\t天很蓝,\n\t那就一定不会出错!",font=("times",15,"normal"))
pen.goto(0,0)
pen.pendown()
pen.fillcolor("pink")
pen.begin_fill()
pen.left(45)
pen.forward(a)
pen.circle(a/2,180)
pen.right(90)
pen.circle(a/2,180)
pen.forward (a)
pen.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