Commit a36cef78 by BellCodeEditor

save project

parent fa0dff60
Showing with 21 additions and 0 deletions
import turtle #导入turtle库包
turtle.fillcolor("red") #填充颜色
turtle.begin_fill() #开始画,类似起笔
count = 1 #计时器,用于计录次数
while count <= 5: #控制绘制次数
turtle.forward(100) #画笔绘制的方向,向前移动指定的距离
turtle.right(144) #向右转144度
count += 1 #循环绘制
turtle.end_fill() #完成填充图片的绘制。
\ 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