Commit cb03d1a2 by BellCodeEditor

save project

parent 0a06206f
Showing with 6 additions and 5 deletions
import turtle import turtle
len=60
a=turtle.Pen() a=turtle.Pen()
c=turtle.Screen()
n=c.textinput("提示","输入半径")
a.fillcolor("red") a.fillcolor("red")
a.begin_fill() a.begin_fill()
a.left(45) a.left(45)
a.forward(2*len) a.forward(2*float(n))
a.circle(len,180) a.circle(float(n),180)
a.right(90) a.right(90)
a.circle(len,180) a.circle(float(n),180)
a.forward(2*len) a.forward(2*float(n))
a.end_fill() a.end_fill()
a.penup() a.penup()
a.goto(0,-100) a.goto(0,-100)
......
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