Commit 5101a26d by BellCodeEditor

auto save

parent 07858a54
Showing with 31 additions and 0 deletions
import turtle
screen = turtle.Screen()
pen = turtle.Pen()
pen.write("送你一个小心心",font=("",30,""))
pen.penup()
pen.goto(-100,10)
pen.pendown()
screen.bgcolor("pink")
pen.pencolor("red")
pen.pensize(5)
len = int(screen.textinput("提示","请输入大小"))
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
turtle.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