Commit af8c4719 by BellCodeEditor

save project

parent 3b99feb5
Showing with 6 additions and 6 deletions
import turtle
a=turtle.Pen()
b=turtle.Screen()
c=b.textinput("提示","输入半径")
a.fillcolor("red")
a.begin_fill()
a.left(135)
a.forward(100)
a.circle(-50,180)
a.forward(2*float(c))
a.circle(-float(c),180)
a.left(90)
a.circle(-50,180)
a.forward(100)
a.circle(-float(c),180)
a.forward(2*float(c))
a.end_fill()
a.penup()
a.goto(-400,-200)
a.write("1",font=("黑体",200,"normal"))
a.penup()
a.goto(200,-200)
len=60
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