Commit baeaca10 by BellCodeEditor

auto save

parent b20fddb6
Showing with 23 additions and 9 deletions
# 导入库
import turtle import turtle
pen = turtle.Pen() # 创建画笔
pen.fillcolor("red") p = turtle.Pen()
pen.begin_fill() # 控制画笔颜色
p.color("red")
# 填充颜色
p.fillcolor("red")
# 开始填充
p.begin_fill()
# 创建循环
for i in range(5): for i in range(5):
pen.forward(200) # 控制画笔移动
pen.left(144) p.forward(100)
pen.hideturtle() # 控制画笔方向
pen.end_fill() p.left(144)
turtle.done() # 结束颜色填充
\ No newline at end of file p.end_fill()
# 隐藏画笔
p.hideturtle()
# 保存画布
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