Commit 37965913 by BellCodeEditor

save project

parent 9f77abe3
Showing with 73 additions and 0 deletions
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.penup()
turtle.goto(0,0)
turtle.dot(20,"red")
turtle.penup()
turtle.goto(40,0)
turtle.dot(20,"red")
turtle.penup()
turtle.goto(-40,0)
turtle.dot(20,"red")
turtle.hideturtle()
o=3.14
r=float(input("半径:")
d=2*r
C=2*o*r
S=o*r*r
\ No newline at end of file
a=6 #长
b=3 #宽
s=a*b #面积
print(s)
\ No newline at end of file
import turtle
turtle.goto(0,-200)
turtle.pendown()
turtle.circle(200)
turtle.penup()
turtle.goto(-100,50)
turtle.pendown()
turtle.circle(20)
turtle.fillcolor("blue")
turtle.begin_fill()
turtle.end_fill()
turtle.penup()
turtle.forward(200)
turtle.pendown()
turtle.circle(20)
turtle.fillcolor("blue")
turtle.begin_fill()
turtle.end_fill()
turtle.penup()
turtle.goto(0,50)
turtle.pendown()
turtle.circle(-50,steps=3)
turtle.goto(-150,-70)
turtle.pendown()
turtle.goto(0,-170)
turtle.goto(-150,-70)
turtle.penup()
turtle.forward(300)
turtle.pendown()
turtle.goto(0,-170)
turtle.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