Commit 7b18e8ee by BellCodeEditor

save project

parent 95aef6a7
Showing with 4 additions and 0 deletions
...@@ -5,10 +5,14 @@ ...@@ -5,10 +5,14 @@
import turtle import turtle
#设置画笔 #设置画笔
p = turtle.Pen() p = turtle.Pen()
#设置画笔图标
p.shape("turtle")
#循环画图 #循环画图
for i in range(5): for i in range(5):
#移动200步 #移动200步
p.forward(200) p.forward(200)
#改变方向144度 #改变方向144度
p.left(144) p.left(144)
# 隐藏画笔图标
p.hideturtle()
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