Commit c490bb51 by BellCodeEditor

save project

parent 3ea1aa5c
Showing with 9 additions and 2 deletions
...@@ -7,12 +7,18 @@ import turtle #导入turtle模块 ...@@ -7,12 +7,18 @@ import turtle #导入turtle模块
# A.hideturtle() #隐藏画笔 # A.hideturtle() #隐藏画笔
# turtle.done() #保持画布 # turtle.done() #保持画布
a=turtle.pen() a=turtle.Pen()
a.pencolor("grey")
a.pensize(5)
a.fillcolor("red")
a.begin_fill()
a.left(45) a.left(45)
a.forward(100) a.forward(100)
a.circle(50,180) a.circle(50,180)
a.right(90) a.right(90)
a.circle(50,180) a.circle(50,180)
a.forward(100) a.forward(100)
A.hideturtle() a.hideturtle()
turtle.done()
\ No newline at end of file
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