Commit 382e5498 by BellCodeEditor

save project

parent b14ac1a3
Showing with 7 additions and 7 deletions
import turtle
le1 = 60
t = turtle.Pen()
p = turtle.Screen()
o =p.textinput("jjj",'ddd')
len=int(o)
p.bgcolor("pink")
t.fillcolor('red')
......@@ -13,15 +13,14 @@ t.pensize(10)
t.pencolor("red")
t.goto(0,0)
t.pendown()
t.left(45)
t.forward(2*le1)
t.forward(len*2)
t.begin_fill()
t.circle(le1,180)
t.circle(len,180)
t.right(90)
t.circle(le1,180)
t.circle(len,180)
t.forward(2*le1)
t.forward(len*2)
t.end_fill()
t.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