Commit 5fef4589 by BellCodeEditor

save project

parent 73390e76
Showing with 3 additions and 2 deletions
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
import turtle #导入模块 import turtle #导入模块
pen=turtle.Pen()#调用画笔 pen=turtle.Pen()#调用画笔
pen.shape("turtle")#设成海龟 pen.shape("turtle")#设成海龟
pen.fillcolor("red")
pen.begin_fill()
for i in range(5): for i in range(5):
pen.left(144) pen.left(144)
pen.forward(200)#移动100 pen.forward(200)#移动100
#左转 #左转
pen.end_fill()
turtle.done() 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