Commit 83097dd8 by BellCodeEditor

save project

parent 60817d5d
Showing with 6 additions and 4 deletions
import turtle import turtle
len=
bi = turtle.Pen() bi = turtle.Pen()
pinmu = turtle.Screen()
bi.pensize(5) bi.pensize(5)
bi.pencolor("red") bi.pencolor("red")
bi.fillcolor("red") bi.fillcolor("red")
bi.begin_fill() bi.begin_fill()
bi.lt(45) bi.lt(45)
bi.fd(len*2) len = pinmu.textinput("sb")
bi.circle(len,180) int_len = int(len)
bi.fd(int_len*2)
bi.circle(int_len,180)
bi.rt(90) bi.rt(90)
bi.circle(len,180) bi.circle(int_len,180)
bi.fd(len*2) bi.fd(len*2)
bi.end_fill() bi.end_fill()
bi.penup() bi.penup()
......
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