Commit 38026bfe by BellCodeEditor

auto save

parent 8ec7f532
Showing with 25 additions and 4 deletions
# 倒入turtle模块
import turtle
# 设置画笔
p = turtle.Pen()
turtle.done()
p.shape(san)
\ No newline at end of file
# 改变画笔的速度
p.speed(1000)
# 改变画笔颜色
p.color("red")
# 设置填充的颜色
p.fillcolor("yellow")
# 填充颜色
p.begin_fill()
# 画笔重复移动36次
for i in range(36):
# 画笔移动
p.forward(200)
# 画笔方向
p.right(170)
# 结束填充颜色
p.end_fill()
# 隐藏画笔图标
# 固定画布
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