Commit b915a01c by BellCodeEditor

save project

parent 2f4ee943
Showing with 7 additions and 1 deletions
...@@ -8,9 +8,15 @@ p.fillcolor("red") ...@@ -8,9 +8,15 @@ p.fillcolor("red")
p.color("red") p.color("red")
# 开始填充颜色 # 开始填充颜色
p.begin_fill() p.begin_fill()
# 抬起画笔
p.penup()
# 固定画笔位置
p.setpos(-400,300)
# 落下画笔
p.pendown()
# 画五角星 # 画五角星
for i in range(5): for i in range(5):
p.forward(200) p.forward(100)
p.right(144) p.right(144)
# 结束填充颜色 # 结束填充颜色
p.end_fill() p.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