Commit ca63b81c by BellCodeEditor

auto save

parent a30001a0
Showing with 7 additions and 15 deletions
import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.right(144)
pen.forward(100)
pen.end_fill()
pen.hideturtle()
# 导入模块
pen=turtle.Pen() # 创建画笔
for i in range(5): # 循环5次
pen.right(144) # 右转144度
pen.forward(100) # 前进100步
pen.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