Commit a17a06df by BellCodeEditor

save project

parent b738c5be
Showing with 5 additions and 4 deletions
import turtle import turtle
a=int(input("请输入半径的大小:"))
turtle.bgcolor("pink") turtle.bgcolor("pink")
turtle.hideturtle() turtle.hideturtle()
turtle.penup() turtle.penup()
...@@ -9,13 +10,13 @@ turtle.goto(0,0) ...@@ -9,13 +10,13 @@ turtle.goto(0,0)
turtle.begin_fill() turtle.begin_fill()
turtle.left(45) turtle.left(45)
turtle.forward(200) turtle.forward(2*a)
turtle.color("red") turtle.color("red")
turtle.circle(100,180) turtle.circle(a,180)
turtle.right(90) turtle.right(90)
turtle.circle(100,180) turtle.circle(a,180)
turtle.forward(200) turtle.forward(2*a)
turtle.end_fill() turtle.end_fill()
......
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