Commit 456f2e02 by BellCodeEditor

save project

parent 07858a54
Showing with 26 additions and 0 deletions
import turtle
screen=turtle.Screen()
pen=turtle.Pen()
screen.bgcolor("red")
pen.penup()
pen.goto(100,-124)
pen.write("1\n12\n123\n1234\n12345\n",font=("Times",20,"normal"))
pen.hideturtle()
len=screen.textinput("问话框","圆的半径:")
lovesize=int(len)
len1=screen.textinput("问话框","字体大小:")
lovesize1=int(len1)
def huaaixin(a,b):
pena=turtle.Pen()
pena.pencolor("blue")
pena.pensize(a)
pena.left(45)
pena.forward(b)
pena.circle(b/2,180)
pena.right(90)
pena.circle(b/2,180)
pena.forward(b)
pena.hideturtle()
huaaixin(lovesize1,lovesize)
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