Commit 9564bfca by BellCodeEditor

auto save

parent 77d69aab
Showing with 30 additions and 15 deletions
import turtle
pen=turtle.Pen()
pen.pencolor("black")
pen.penup()
pen.goto(0,50)
pen.goto(-100,-100)
pen.pendown()
pen.circle(-50,steps=3)
pen.forward(200)
pen.left(90)
pen.forward(200)
pen.left(90)
pen.forward(200)
pen.left(90)
pen.forward(200)
pen.fillcolor('red')
pen.begin_fill()
pen.penup()
pen.goto(-150,-70)
pen.goto(0,0)
pen.pendown()
pen.goto(0,-170)
pen.goto(150,-70)
r=input("请输入圆的半径:")
a=3.14
d=r*2
c=a*r*2
S=a*r*r
print(d)
pen.circle(10,360)
pen.end_fill()
pen.fillcolor('red')
pen.begin_fill()
pen.penup()
pen.goto(0,-40)
pen.pendown()
pen.circle(10,360)
pen.end_fill()
pen.hideturtle()
pen.fillcolor('red')
pen.begin_fill()
pen.penup()
pen.goto(0,40)
pen.pendown()
pen.circle(10,360)
pen.end_fill()
pen.hideturtle()
......
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