Commit c35fc885 by BellCodeEditor

save project

parent 858014d0
Showing with 41 additions and 3 deletions
...@@ -6,20 +6,58 @@ t.penup() ...@@ -6,20 +6,58 @@ t.penup()
t.goto(100,-300) t.goto(100,-300)
t.write("你好呀\n再见",font=("Times",40,"normal")) t.write("你好呀\n再见",font=("Times",40,"normal"))
len=60 len=int(screen.textinput("提示","输入半径大小:"))
t.penup() t.penup()
t.goto(0,0) t.goto(0,0)
t.pendown() t.pendown()
t.pensize(10) t.pensize(10)
t.pencolor("red") t.pencolor("red")
t.begin_fill()
t.left(45) t.left(45)
t.forward(len*2) t.forward(len*2)
t.circle(len,180) t.circle(len,180)
t.right(90) t.right(90)
t.circle(len,180) t.circle(len,180)
t.forward(len*2) t.forward(len*2)
t.end_fill()
t.hideturtle() t.hideturtle()
t.done() t.done()
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