Commit 9564bfca by BellCodeEditor

auto save

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