Commit 05c7ed3d by BellCodeEditor

save project

parent f8ca6d2f
Showing with 22 additions and 0 deletions
import turtle
pen=turtle.Pen()
pen.pensize(1)
pen.pencolor("red")
pen.goto(0,-100)
pen.circle(100)
pen.goto(0,100)
pen.penup()
pen.goto(-100,0)
pen.pendown()
pen.goto(100,0)
pen.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -4,8 +4,16 @@ screen=turtle.Screen()
pen= turtle.Pen()
size=screen.textinput("提示","你想要多大的魔法阵呀?")
size=int(size)
pen.pencolor("red")
pen.pensize(3)
pen.fillcolor("yellow")
pen.begin_fill()
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
pen.end_fill()
pen.hideturtle()
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